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

Error: No known conditions for "./lib/locale/lang/zh-cn" entry in "element-plus" package #8

Closed
shenweiyan opened this issue Mar 26, 2024 · 1 comment

Comments

@shenweiyan
Copy link

在 cloudflare pages 部署提示 error 了:

16:39:05.294    [commonjs--resolver] No known conditions for "./lib/locale/lang/zh-cn" entry in "element-plus" package
16:39:05.295    error during build:
16:39:05.295    Error: No known conditions for "./lib/locale/lang/zh-cn" entry in "element-plus" package
16:39:05.295        at bail (file:///opt/buildhome/repo/node_modules/vite/dist/node/chunks/dep-372dab03.js:32678:8)
16:39:05.296        at resolve (file:///opt/buildhome/repo/node_modules/vite/dist/node/chunks/dep-372dab03.js:32750:9)
16:39:05.296        at resolveExports (file:///opt/buildhome/repo/node_modules/vite/dist/node/chunks/dep-372dab03.js:34135:12)
16:39:05.296        at resolveDeepImport (file:///opt/buildhome/repo/node_modules/vite/dist/node/chunks/dep-372dab03.js:34153:31)
16:39:05.296        at tryNodeResolve (file:///opt/buildhome/repo/node_modules/vite/dist/node/chunks/dep-372dab03.js:33842:20)
16:39:05.297        at Object.resolveId (file:///opt/buildhome/repo/node_modules/vite/dist/node/chunks/dep-372dab03.js:33602:28)
16:39:05.297        at file:///opt/buildhome/repo/node_modules/rollup/dist/es/shared/rollup.js:22748:40
16:39:05.297        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
16:39:05.312    Failed: Error while executing user command. Exited with error code: 1
16:39:05.323    Failed: build command exited with code: 1
16:39:06.150    Failed: error occurred while running build command
@shenweiyan
Copy link
Author

在 cloudflare pages 部署提示 error 了:

16:39:05.294    [commonjs--resolver] No known conditions for "./lib/locale/lang/zh-cn" entry in "element-plus" package
16:39:05.295    error during build:
16:39:05.295    Error: No known conditions for "./lib/locale/lang/zh-cn" entry in "element-plus" package
16:39:05.295        at bail (file:///opt/buildhome/repo/node_modules/vite/dist/node/chunks/dep-372dab03.js:32678:8)
16:39:05.296        at resolve (file:///opt/buildhome/repo/node_modules/vite/dist/node/chunks/dep-372dab03.js:32750:9)
16:39:05.296        at resolveExports (file:///opt/buildhome/repo/node_modules/vite/dist/node/chunks/dep-372dab03.js:34135:12)
16:39:05.296        at resolveDeepImport (file:///opt/buildhome/repo/node_modules/vite/dist/node/chunks/dep-372dab03.js:34153:31)
16:39:05.296        at tryNodeResolve (file:///opt/buildhome/repo/node_modules/vite/dist/node/chunks/dep-372dab03.js:33842:20)
16:39:05.297        at Object.resolveId (file:///opt/buildhome/repo/node_modules/vite/dist/node/chunks/dep-372dab03.js:33602:28)
16:39:05.297        at file:///opt/buildhome/repo/node_modules/rollup/dist/es/shared/rollup.js:22748:40
16:39:05.297        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
16:39:05.312    Failed: Error while executing user command. Exited with error code: 1
16:39:05.323    Failed: build command exited with code: 1
16:39:06.150    Failed: error occurred while running build command

参考 #6 可以解决~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant