Skip to content

ERR_MODULE_NOT_FOUND #5133

@poggibx

Description

@poggibx

Describe the bug

The project runs normally in the development environment, but an error occurs when packaging.
The error message is:
Cannot find module '/project/docs/docs/.vitepress/.temp/app.js' imported from /project/node_modules/.pnpm/vitepress@1.6.3_@algolia+client-search@5.49.1_@types+node@20.11.5_async-validator@4.2.5_822091b787b870de8a2291f1ec9a557e/node_modules/vitepress/dist/node/chunk-Zsoi3j4v.js

Reproduction

At present, I cannot identify the root cause of this issue, as the error message provided is far too limited.

Expected behavior

I hope the project can be built and packaged normally.

System Info

System:
    OS: macOS 15.7.4
    CPU: (10) arm64 Apple M4
    Memory: 4.64 GB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.17.0 - /Users/poggi/.nvm/versions/node/v22.17.0/bin/node
    npm: 10.9.2 - /Users/poggi/.nvm/versions/node/v22.17.0/bin/npm
    pnpm: 10.29.3 - /Users/poggi/.nvm/versions/node/v22.17.0/bin/pnpm
  Browsers:
    Chrome: 145.0.7632.117
    Safari: 18.6

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    need more infoFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions