typeorm : MODULE_NOT_FOUND
See original GitHub issueEnvironment
Getting error in "next-auth": "^3.23.1"
Reproduction URL
I am using "next-auth": "^3.23.1"
version and suddenly it stop working after deployment
Describe the issue
Error: Cannot find module ‘/home/user/Documents/projects/web.app/node_modules/typeorm/util/StringUtils’ at createEsmNotFoundErr (node:internal/modules/cjs/loader:960:15) at finalizeEsmResolution (node:internal/modules/cjs/loader:953:15) at resolveExports (node:internal/modules/cjs/loader:482:14) at Function.Module._findPath (node:internal/modules/cjs/loader:522:31) at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27) at Function.mod._resolveFilename (/home/gwl/Documents/galaxy/gwl-projects/web.amplify/node_modules/next/dist/build/webpack/require-hook.js:4:1784) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (/home/user/Documents/user/projects/web.app/node_modules/next-auth/node_modules/@next-auth/typeorm-legacy-adapter/dist/lib/naming-strategies.js:10:20) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions…js (node:internal/modules/cjs/loader:1153:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) { code: ‘MODULE_NOT_FOUND’, path: ‘/home/gwl/Documents/user/projects/web.app/node_modules/typeorm/package.json’
How to reproduce
I am using "next-auth": "^3.23.1"
version and suddenly it stops working after deployment
Expected behavior
I am using "next-auth": "^3.23.1"
version and suddenly it stop working after deployment
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:28 (4 by maintainers)
Thanks @XerxesAkaEnno I tried this with no luck. The thing is, I use yarn & workspaces ! Finally managed to force versioning with :
In the workspace
package.json
!Thanks @XerxesAkaEnno