-
Notifications
You must be signed in to change notification settings - Fork 7k
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
yarn build error #3613
Comments
The error you're encountering is due to the
If after following these steps the issue persists, it may be necessary to delve deeper into how Sources
|
Still have this problem.
|
Self Checks
Dify version
0.6.3
Cloud or Self Hosted
Self Hosted (Source)
Steps to reproduce
yarn build
✔️ Expected Behavior
no error
❌ Actual Behavior
dify\web>yarn build
yarn run v1.22.19
$ next build
▲ Next.js 14.2.2
Creating an optimized production build ...
Failed to compile.
./node_modules/mermaid/dist/mindmap-definition-57868176.js
Module not found: Package path ./dist/cytoscape.umd.js is not exported from package \dify\web\node_modules\cytoscape (see exports field in \dify\web\node_modules\cytoscape\package.json)
https://nextjs.org/docs/messages/module-not-found
Import trace for requested module:
./node_modules/mermaid/dist/mermaid-768dc893.js
./node_modules/mermaid/dist/mermaid.core.mjs
./app/components/app/chat/mermaid/index.tsx
./app/components/base/markdown.tsx
./app/components/app/text-generate/saved-items/index.tsx
./app/components/share/text-generation/index.tsx
The text was updated successfully, but these errors were encountered: