-
Notifications
You must be signed in to change notification settings - Fork 15.6k
Description
版本号:3.8.3
分支:springboot3
问题描述:JeecgBoot3.8.3版本的前端jeecgboot-vue3代码未做修改,执行dev能正常启动,但执行build或build:docker时报错:Option::unwrap()on aNone` value on swagger-ui-bundle.js, swagger-ui-dist的版本是5.30.2。
错误截图:
[email protected] build D:\jeecgboot-vue3
cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=8192 vite build && esno ./build/script/postBuild.ts && esno ./build/script/copyChat.ts
The CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
[init] Start Port: 3100
WARN plugin 'vite:@rys-fe/inject-vite-plugin-theme-client' uses deprecated 'enforce' option. Use 'order' option instead.
WARN plugin 'vite:@rys-fe/inject-vite-plugin-theme-client' uses deprecated 'transform' option. Use 'handler' option instead.
vite v6.4.1 building for production...
WARN <script src="/_app.config.js?v=3.8.3-1762654541668"> in "/index.html" can't be bundled without type="module" attribute
transforming (7117) node_modules.pnpm\[email protected]\node_modules\swagger-ui-dist\swagger-ui.css
thread '' panicked at parse_ast\src\ast_nodes\template_element.rs:12:50:
called Option::unwrap() on a None value
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
✓ 7137 modules transformed.
[@rys-fe/vite-plugin-theme:antd-dark] - extract antd dark css code file is successfully:
[@rys-fe/vite-plugin-theme] - extract css code file is successfully:
ERROR ✗ Build failed in 32.95s
ERROR error during build:
[commonjs--resolver] called Option::unwrap() on a None value in D:/jeecgboot-vue3/node_modules/.pnpm/[email protected]/node_modules/swagger-ui-dist/swagger-ui-bundle.js
file: D:/jeecgboot-vue3/node_modules/.pnpm/[email protected]/node_modules/swagger-ui-dist/swagger-ui-bundle.js
at getRollupError (file:///D:/jeecgboot-vue3/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/parseAst.js:401:41)
at convertProgram (file:///D:/jeecgboot-vue3/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/parseAst.js:1095:26)
at parseAst (file:///D:/jeecgboot-vue3/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/parseAst.js:2083:87)
at tryParse (file:///D:/jeecgboot-vue3/node_modules/.pnpm/vite@6.4.1_@types[email protected]_f3ac65acb8d19d7450e2c556ddd61b82/node_modules/vite/dist/node/chunks/dep-D4NMHUTW.js:2252:12)
at analyzeTopLevelStatements (file:///D:/jeecgboot-vue3/node_modules/.pnpm/vite@6.4.1_@types[email protected]_f3ac65acb8d19d7450e2c556ddd61b82/node_modules/vite/dist/node/chunks/dep-D4NMHUTW.js:2272:15)
at Object.transformAndCheckExports (file:///D:/jeecgboot-vue3/node_modules/.pnpm/vite@6.4.1_@types[email protected]_f3ac65acb8d19d7450e2c556ddd61b82/node_modules/vite/dist/node/chunks/dep-D4NMHUTW.js:4348:68)
at Object.transform (file:///D:/jeecgboot-vue3/node_modules/.pnpm/vite@6.4.1_@types[email protected]_f3ac65acb8d19d7450e2c556ddd61b82/node_modules/vite/dist/node/chunks/dep-D4NMHUTW.js:4552:41)
at Object.handler (file:///D:/jeecgboot-vue3/node_modules/.pnpm/vite@6.4.1_@types[email protected]_f3ac65acb8d19d7450e2c556ddd61b82/node_modules/vite/dist/node/chunks/dep-D4NMHUTW.js:46537:15)
at file:///D:/jeecgboot-vue3/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:22437:40
ELIFECYCLE Command failed with exit code 1.
友情提示:
- 未按格式要求发帖、描述过于简单的,会被直接删掉;
- 描述问题请图文并茂,方便我们理解并快速定位问题;
- 如果使用的不是master,请说明你使用的分支;