langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
50.05k stars 7.15k forks source link

Error in devcontainer #6801

Closed Chensem closed 3 months ago

Chensem commented 3 months ago

Self Checks

Dify version

lasted

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

Encounter a error, when build devcontainer

image

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

dosubot[bot] commented 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:

  1. 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
  2. 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.

  3. Try deleting the node_modules directory and reinstalling the dependencies:

    cd /workspaces/dify/web
    rm -rf node_modules
    npm install
  4. 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.