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

本地运行报错 #2

Open
jonsen opened this issue Jan 3, 2024 · 0 comments
Open

本地运行报错 #2

jonsen opened this issue Jan 3, 2024 · 0 comments

Comments

@jonsen
Copy link

jonsen commented Jan 3, 2024

错误信息如下:

`$ yarn serve
yarn run v1.22.5
$ vue-cli-service serve
INFO Starting development server...
98% after emitting CopyPlugin

ERROR Failed to compile with 1 error 8:39:42 AM

error in ./node_modules/.pnpm/@aoMao+toolbar-vue@2.10.3_@aomao[email protected][email protected][email protected]/node_modules/@aomao/toolbar-vue/dist/index.esm.js

Module parse failed: Unexpected token (898:31)
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
| },
| toState(color, oldHue) {

        let c = color.hex ?? color;

| if (c === 'transparent') {
| c = 'rgba(0,0,0,0)';

@ ./node_modules/.pnpm/[email protected][email protected]/node_modules/cache-loader/dist/cjs.js??ref--15-0!./node_modules/.pnpm/babel-loader@8.3.0_@babel[email protected][email protected]/node_modules/babel-loader/lib!./node_modules/.pnpm/[email protected][email protected]/node_modules/ts-loader??ref--15-2!./node_modules/.pnpm/[email protected][email protected]/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/.pnpm/vue-loader@16.8.3_@vue[email protected][email protected][email protected]/node_modules/vue-loader/dist??ref--1-1!./src/components/Editor/Main.vue?vue&type=script&lang=ts 7:0-43 15:4-13
@ ./src/components/Editor/Main.vue?vue&type=script&lang=ts
@ ./src/components/Editor/Main.vue
@ ./node_modules/.pnpm/[email protected][email protected]/node_modules/cache-loader/dist/cjs.js??ref--15-0!./node_modules/.pnpm/babel-loader@8.3.0_@babel[email protected][email protected]/node_modules/babel-loader/lib!./node_modules/.pnpm/[email protected][email protected]/node_modules/ts-loader??ref--15-2!./node_modules/.pnpm/[email protected][email protected]/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/.pnpm/vue-loader@16.8.3_@vue[email protected][email protected][email protected]/node_modules/vue-loader/dist??ref--1-1!./src/views/Home.vue?vue&type=script&lang=ts
@ ./src/views/Home.vue?vue&type=script&lang=ts
@ ./src/views/Home.vue
@ ./src/router/index.ts
@ ./src/main.ts
@ multi ./node_modules/.pnpm/[email protected][email protected]/node_modules/webpack-dev-server/client?http://192.168.1.88:8081&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.ts

Issues checking in progress...
ERROR in src/plugins/test/component/index.ts:51:12
TS2354: This syntax requires an imported helper but module 'tslib' cannot be found.
49 | render() {
50 | this.#container = $("

Loading
");

51 | return this.#container;
| ^^^^^^^^^^^^^^^
52 | }
53 |
54 | didRender() {
`

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