Closed haidong-yao closed 1 year ago
下载code 执行npm run dev,不能成功运行
goadmin/go-admin-ui$ npm run dev
go-admin@2.0.9 dev /home/yhd/work/go_project/goadmin/go-admin-ui vue-cli-service serve
INFO Starting development server... 98% after emitting CopyPlugin
ERROR Failed to compile with 1 error 下午5:03:15
**error in ./src/layout/components/AppMain.vue?vue&type=style&index=0&id=078753dd&lang=scss&scoped=true&
Syntax Error: ReferenceError: globalThis is not defined**
@ ./node_modules/vue-style-loader??ref--9-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--9-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/layout/components/AppMain.vue?vue&type=style&index=0&id=078753dd&lang=scss&scoped=true& 4:14-480 15:3-20:5 16:22-488 @ ./src/layout/components/AppMain.vue?vue&type=style&index=0&id=078753dd&lang=scss&scoped=true& @ ./src/layout/components/AppMain.vue @ ./src/layout/components/index.js @ ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/layout/index.vue?vue&type=script&lang=js& @ ./src/layout/index.vue?vue&type=script&lang=js& @ ./src/layout/index.vue @ ./src/router/index.js @ ./src/main.js @ multi (webpack)-dev-server/client?http://10.248.192.159:9527&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js
node 版本不对导致
下载code 执行npm run dev,不能成功运行
goadmin/go-admin-ui$ npm run dev
INFO Starting development server... 98% after emitting CopyPlugin
ERROR Failed to compile with 1 error 下午5:03:15
**error in ./src/layout/components/AppMain.vue?vue&type=style&index=0&id=078753dd&lang=scss&scoped=true&
Syntax Error: ReferenceError: globalThis is not defined**
@ ./node_modules/vue-style-loader??ref--9-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--9-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/layout/components/AppMain.vue?vue&type=style&index=0&id=078753dd&lang=scss&scoped=true& 4:14-480 15:3-20:5 16:22-488 @ ./src/layout/components/AppMain.vue?vue&type=style&index=0&id=078753dd&lang=scss&scoped=true& @ ./src/layout/components/AppMain.vue @ ./src/layout/components/index.js @ ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/layout/index.vue?vue&type=script&lang=js& @ ./src/layout/index.vue?vue&type=script&lang=js& @ ./src/layout/index.vue @ ./src/router/index.js @ ./src/main.js @ multi (webpack)-dev-server/client?http://10.248.192.159:9527&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js