question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

typeorm : MODULE_NOT_FOUND

See original GitHub issue

Environment

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:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:28 (4 by maintainers)

github_iconTop GitHub Comments

7reactions
matha-iocommented, Feb 17, 2022

Thanks @XerxesAkaEnno I tried this with no luck. The thing is, I use yarn & workspaces ! Finally managed to force versioning with :

  "resolutions": {
    "typeorm": "0.2.41"
  }

In the workspace package.json !

4reactions
satishSKYcommented, Feb 17, 2022

Thanks @XerxesAkaEnno I tried this with no luck. The thing is, I use yarn & workspaces ! Finally managed to force versioning with :

  "resolutions": {
    "typeorm": "0.2.41"
  }

In the workspace package.json !

Thanks @XerxesAkaEnno

Read more comments on GitHub >

github_iconTop Results From Across the Web

Module not found StringUtils · Issue #8656 · typeorm ... - GitHub
After updating to version 0.2.42 I get an error on my next js application which says "Module not Found ../typeorm/util/StringUtils"
Read more >
TypeORM 'Module not found' when building (webpack)
It happens as soon as I call createConnection , which is imported from typeorm . The error I get is the following. I...
Read more >
typeorm - npm
TypeORM is an ORM that can run in NodeJS, Browser, Cordova, PhoneGap, Ionic, React Native, NativeScript, Expo, and Electron platforms and ...
Read more >
typeorm error driver not connected - You.com | The AI Search ...
Steps to reproduce or a small repository showing the problem: I tried to use typeorm for aws lambda functions. A first query to...
Read more >
typeorm/typeorm - Gitter
An in depth video tutorial about TypeORM & Express. API creation, relations, migrations, queryBuilder etc. Everything! I spent a good while searching but...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found