Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

软件崩溃 unsupported keyword: export #583

Open
1 task done
ShylockGao opened this issue Mar 26, 2024 · 4 comments
Open
1 task done

软件崩溃 unsupported keyword: export #583

ShylockGao opened this issue Mar 26, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@ShylockGao
Copy link

Affected version

0.16.0-beta.5

Flutter versions

3.16.5

No same issues found.

  • Yes, I search all issues but not found.

Steps to Reproduce

1、教程初始化访问
提示
SyntaxError: unsupported keyword: export
at https://tronplayai.com/assets/index.6b999624.js:5:101133

Code example

  @override
  Widget build(BuildContext context) {
    final MediaQueryData queryData = MediaQuery.of(context);
    final Size viewportSize = queryData.size;

    return Scaffold(
      body: Column(
        children: [
          // ElevatedButton(onPressed: (){}, child: Text("xxxxxxxxxxxxxx")),

          WebF(
            devToolsService: ChromeDevToolsService(), // Enable Chrome DevTools Services
            viewportWidth: viewportSize.width - queryData.padding.horizontal, // Adjust the viewportWidth
            viewportHeight: viewportSize.height - queryData.padding.vertical, // Adjust the viewportHeight
            bundle: WebFBundle.fromUrl('https://tronplayai.com/'), // The page entry point
          ),
        ],
      )
    );
  }

Expected results

正常页面展示

Actual results

app崩溃
提示
SyntaxError: unsupported keyword: export
at https://tronplayai.com/assets/index.6b999624.js:5:101133

@ShylockGao ShylockGao added the bug Something isn't working label Mar 26, 2024
@muzipiao
Copy link

muzipiao commented Aug 6, 2024

这个库问题很多,缩放窗口也会Crash

@aymonYU
Copy link

aymonYU commented Aug 15, 2024

遇到相同的问题,vue3代码编译dist的js 都是有export关键字,貌似是quickjs 不支持 js export模块

@andycall
Copy link
Member

andycall commented Aug 15, 2024

暂时不支持esm module,需要用vue-cli 构建

@andycall
Copy link
Member

这个库问题很多,缩放窗口也会Crash

有issue 吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants