在执行 npm run build:theme
命令的时候遇到了报错。
> TYPE=lib vue-cli-service build --target lib --name theme-default/index --no-clean lib/theme-default/index.tsx
命令语法不正确。
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vue3-json-schema-form@0.1.0 build:theme: `TYPE=lib vue-cli-service build --target lib --name theme-default/index --no-clean lib/theme-default/index.tsx`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vue3-json-schema-form@0.1.0 build:theme script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output
above.
pacakge.json 中的配置
"build:theme": "TYPE=lib vue-cli-service build --target lib --name theme-default/index --no-clean lib/theme-default/index.tsx",
vue-cli 版本号:@vue/cli 4.5.8
当尝试去掉 TYPE=lib
参数之后。命令可以正常运行。但是无法跳过monaco插件了。
希望帮忙看看有什么线索。
登录后可查看更多问答,登录/注册