You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR in ./node_modules/@antv/layout/lib/supervisor.js friendly-errors 10:17:54
Module parse failed: Unexpected token (78:46) friendly-errors 10:17:54
File was processed with these loaders:
./node_modules/cache-loader/dist/cjs.js
./node_modules/thread-loader/dist/cjs.js
./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
| this.proxy = Comlink.wrap(
| // @ts-ignore
new Worker(new URL('./worker.js', import.meta.url), {
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
nuxt2 使用v5 版本编译报错,import.meta 语法不支持
Nuxt2 is compiled with the v5 version and the import.meta syntax is not supported
Sep 24, 2024
Describe the bug / 问题描述
nuxt2 使用v5 版本编译报错,import.meta 语法不支持。
babel 已经添加了插件,
"plugins": ["@babel/plugin-syntax-import-meta"]
Reproduction link / 重现链接
No response
Steps to Reproduce the Bug or Issue / 重现步骤
ERROR in ./node_modules/@antv/layout/lib/supervisor.js friendly-errors 10:17:54
Module parse failed: Unexpected token (78:46) friendly-errors 10:17:54
File was processed with these loaders:
You may need an additional loader to handle the result of these loaders.
| this.proxy = Comlink.wrap(
| // @ts-ignore
| type: 'module'
| }));
friendly-errors 10:17:54
@ ./node_modules/@antv/layout/lib/index.js 6:0-29 6:0-29
G6 Version / G6 版本
🆕 5.x
Operating System / 操作系统
macOS
Browser / 浏览器
Chrome
Additional context / 补充说明
webpack 4.x
babel-core 7.x
The text was updated successfully, but these errors were encountered: