首页 > 其他分享 >jumserver-master版本 lina组件启动报错

jumserver-master版本 lina组件启动报错

时间:2024-03-14 22:59:33浏览次数:27  
标签:node opt modules js master jumserver 报错 lina

node -v
v16.15.1

 npm -v
8.11.0

yarn -v
1.22.22

 

yarn serve
yarn run v1.22.22
$ vue-cli-service serve
 INFO  Starting development server...
 10% building 2/2 modules 0 active ERROR  SyntaxError: Cannot use import statement outside a module
/opt/lina-master/mock/index.js:1
import "core-js/modules/es6.array.is-array";
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at Object.compileFunction (node:vm:352:18)
    at wrapSafe (node:internal/modules/cjs/loader:1033:15)
    at Module._compile (node:internal/modules/cjs/loader:1069:27)
    at Module._compile (/opt/lina-master/node_modules/pirates/lib/index.js:117:24)
    at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Object.newLoader [as .js] (/opt/lina-master/node_modules/pirates/lib/index.js:121:7)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at registerRoutes (/opt/lina-master/mock/mock-server.js:10:30)
    at Object.module.exports [as after] (/opt/lina-master/mock/mock-server.js:41:22)
    at Server.setupAfterFeature (/opt/lina-master/node_modules/webpack-dev-server/lib/Server.js:465:18)
    at Object.after (/opt/lina-master/node_modules/webpack-dev-server/lib/Server.js:525:16)
    at /opt/lina-master/node_modules/webpack-dev-server/lib/Server.js:584:24
    at Array.forEach (<anonymous>)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

标签:node,opt,modules,js,master,jumserver,报错,lina
From: https://blog.csdn.net/weixin_45302325/article/details/136724319

相关文章