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

SSR ERR_MODULE_NOT_FOUND #136

Open
nirtamir2 opened this issue Oct 7, 2024 · 0 comments
Open

SSR ERR_MODULE_NOT_FOUND #136

nirtamir2 opened this issue Oct 7, 2024 · 0 comments

Comments

@nirtamir2
Copy link

I got this error when I tried to import @atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge and it was in my deps

    "@atlaskit/pragmatic-drag-and-drop": "^1.3.1",
    "@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.3",

I'm using solidstart with ssr: true

Temporary workaround is to load this component in the client using clientOnly

Unhandled Rejection: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/var/task/node_modules/@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge' imported from /var/task/chunks/build/index2.mjs
    at finalizeResolution (node:internal/modules/esm/resolve:269:11)
    at moduleResolve (node:internal/modules/esm/resolve:937:10)
    at moduleResolveWithNodePath (node:internal/modules/esm/resolve:1173:14)
    at defaultResolve (node:internal/modules/esm/resolve:1216:79)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:540:12)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:509:25)
    at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:239:38)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:96:40)
    at link (node:internal/modules/esm/module_job:95:36) {
  code: 'ERR_MODULE_NOT_FOUND',
  url: 'file:///var/task/node_modules/@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge'
}
Node.js process exited with exit status: 128. The logs above can help with debugging the issue.
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