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

Bug: docs build error #4361

Closed
5 tasks done
yymjku18 opened this issue Sep 11, 2024 · 3 comments · Fixed by #4362
Closed
5 tasks done

Bug: docs build error #4361

yymjku18 opened this issue Sep 11, 2024 · 3 comments · Fixed by #4362
Labels
bug Something isn't working

Comments

@yymjku18
Copy link

Version

Vben Admin V5

Describe the bug?

打包文档的时候就会报错,似乎是预览组件DemoPreview的路径没有被正确解析,缺了/?移除所有使用DemoPreview的地方后打包成功。

Reproduction

image

System Info

OS: Win11 
Node: v20.17.0

Relevant log output

No response

Validations

@likui628
Copy link
Collaborator

报错信息

@vben/docs:build:  ERROR  x Build failed in 4.09s
@vben/docs:build:
@vben/docs:build: ✖ building client + server bundles...
@vben/docs:build: 
@vben/docs:build:  ERROR  build error:
@vben/docs:build: [vite-plugin-pwa:build] [vite]: Rollup failed to resolve import "D:Github
ue-vben-admindocssrcdemos
ben-draweasic/index.vue" from "D:/Github/vue-vben-admin/docs/src/components/common-ui/vben-drawer.md".
@vben/docs:build: This is most likely unintended because it can break your application at runtime.
@vben/docs:build: If you do want to externalize this module explicitly add it to
@vben/docs:build: `build.rollupOptions.external`
@vben/docs:build: [vite-plugin-pwa:build] [vite]: Rollup failed to resolve import "D:Github
ue-vben-admindocssrcdemos
ben-draweasic/index.vue" from "D:/Github/vue-vben-admin/docs/src/components/common-ui/vben-drawer.md".
@vben/docs:build: This is most likely unintended because it can break your application at runtime.
@vben/docs:build: If you do want to externalize this module explicitly add it to
@vben/docs:build: `build.rollupOptions.external`
@vben/docs:build:     at viteWarn (file:///D:/Github/vue-vben-admin/node_modules/.pnpm/vite@5.4.3_@types+node@22.5.4_less@4.2.0_sass@1.78.0_terser@5.32.0/node_modules/vite/dist/node/chunks/dep-BaOMuo4I.js:65511:17)
@vben/docs:build:     at onRollupWarning (file:///D:/Github/vue-vben-admin/node_modules/.pnpm/vite@5.4.3_@types+node@22.5.4_less@4.2.0_sass@1.78.0_terser@5.32.0/node_modules/vite/dist/node/chunks/dep-BaOMuo4I.js:65543:5)
@vben/docs:build:     at onwarn (file:///D:/Github/vue-vben-admin/node_modules/.pnpm/vite@5.4.3_@types+node@22.5.4_less@4.2.0_sass@1.78.0_terser@5.32.0/node_modules/vite/dist/node/chunks/dep-BaOMuo4I.js:65206:7)
@vben/docs:build:     at file:///D:/Github/vue-vben-admin/node_modules/.pnpm/rollup@4.21.2/node_modules/rollup/dist/es/shared/node-entry.js:18668:13
@vben/docs:build:     at Object.logger [as onLog] (file:///D:/Github/vue-vben-admin/node_modules/.pnpm/rollup@4.21.2/node_modules/rollup/dist/es/shared/node-entry.js:20306:9)
@vben/docs:build:     at ModuleLoader.handleInvalidResolvedId (file:///D:/Github/vue-vben-admin/node_modules/.pnpm/rollup@4.21.2/node_modules/rollup/dist/es/shared/node-entry.js:19257:26)
@vben/docs:build:     at file:///D:/Github/vue-vben-admin/node_modules/.pnpm/rollup@4.21.2/node_modules/rollup/dist/es/shared/node-entry.js:19215:26
@vben/docs:build:
@vben/docs:build:  ELIFECYCLE  Command failed with exit code 1.
@vben/docs:build: ERROR: command finished with error: command (D:\Github\vue-vben-admin\docs) C:\Users\admin\AppData\Roaming\npm\pnpm.cmd run build exited (1)
@vben/docs#build: command (D:\Github\vue-vben-admin\docs) C:\Users\admin\AppData\Roaming\npm\pnpm.cmd run build exited (1)

@likui628 likui628 added bug Something isn't working and removed bug: pending triage labels Sep 11, 2024
@likui628
Copy link
Collaborator

@yymjku18 试一下最新的

@yymjku18
Copy link
Author

@yymjku18 试一下最新的

打包成功,非常感谢

@github-actions github-actions bot locked and limited conversation to collaborators Sep 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants