Closed Chensem closed 3 months ago
Hello, @Chensem! I'm here to help you with any bugs, questions, or contributions you have for the project. Let's tackle this issue together!
To resolve the "Cannot find module './wrapAsync'" error when running the start-web
alias in a self-hosted environment using the latest version of Dify, follow these steps:
Ensure that all necessary dependencies are installed correctly in the web
directory. The provided script already includes a command to install npm packages:
cd web && npm install
Make sure this command runs successfully without any errors. If the error persists, you might need to manually check the package.json
file in the web
directory to ensure that all required modules are listed and correctly installed.
Try deleting the node_modules
directory and reinstalling the dependencies:
cd /workspaces/dify/web
rm -rf node_modules
npm install
After reinstalling the dependencies, try running the start-web
alias again:
start-web
This should resolve the "Cannot find module './wrapAsync'" error [1].
To continue talking to Dosu, mention @dosu.
Self Checks
Dify version
lasted
Cloud or Self Hosted
Self Hosted (Source)
Steps to reproduce
Encounter a error, when build devcontainer
✔️ Expected Behavior
No response
❌ Actual Behavior
No response