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

node 16.14 无法编译 #4

Open
hyzx86 opened this issue Apr 1, 2022 · 0 comments
Open

node 16.14 无法编译 #4

hyzx86 opened this issue Apr 1, 2022 · 0 comments

Comments

@hyzx86
Copy link

hyzx86 commented Apr 1, 2022

node version
v16.14.2

> Executing task: npm run serve <


> @dgiot/dgiot-amis-editor@1.0.1 serve
 ERROR  Failed to compile with 2 errors                                                                                                                                            14:39:22

 error  in ./node_modules/monaco-editor/esm/vs/language/html/monaco.contribution.js

Module parse failed: Unexpected token (130:11)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|     dispose() {
|       onLanguageListener.dispose();
>       mode?.dispose();
|       mode = void 0;
|     }

 @ ./node_modules/monaco-editor/esm/vs/editor/editor.main.js 4:0-46
 @ ./node_modules/amis/lib/components/Editor.js
 @ ./node_modules/amis-editor/dist/index.min.js
 @ ./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/DgiotAmisEditor/src/DgiotAmisEditor.vue?vue&type=script&lang=js&
 @ ./packages/DgiotAmisEditor/src/DgiotAmisEditor.vue?vue&type=script&lang=js&
 @ ./packages/DgiotAmisEditor/src/DgiotAmisEditor.vue
 @ ./packages/DgiotAmisEditor/index.js
 @ ./packages/index.js
 @ ./examples/main.js
 @ multi (webpack)-dev-server/client?http://192.168.0.93:8080&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./examples/main.js

 error  in ./node_modules/monaco-editor/esm/vs/language/typescript/tsMode.js

Module parse failed: Unexpected token (686:30)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|       }
|       const tags = [];
>       if (entry.kindModifiers?.indexOf("deprecated") !== -1) {
|         tags.push(monaco_editor_core_exports.languages.CompletionItemTag.Deprecated);
|       }

 @ ./node_modules/monaco-editor/esm/vs/language/typescript/monaco.contribution.js 232:11-29
 @ ./node_modules/monaco-editor/esm/vs/editor/editor.main.js
 @ ./node_modules/amis/lib/components/Editor.js
 @ ./node_modules/amis-editor/dist/index.min.js
 @ ./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/DgiotAmisEditor/src/DgiotAmisEditor.vue?vue&type=script&lang=js&
 @ ./packages/DgiotAmisEditor/src/DgiotAmisEditor.vue?vue&type=script&lang=js&
 @ ./packages/DgiotAmisEditor/src/DgiotAmisEditor.vue
 @ ./packages/DgiotAmisEditor/index.js
 @ ./packages/index.js
 @ ./examples/main.js
 @ multi (webpack)-dev-server/client?http://192.168.0.93:8080&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./examples/main.js





Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant