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

TypeORM module resolution issue after 0.2.42 #16

Closed
spalt08 opened this issue Feb 17, 2022 · 2 comments · Fixed by typeorm/typeorm#8660
Closed

TypeORM module resolution issue after 0.2.42 #16

spalt08 opened this issue Feb 17, 2022 · 2 comments · Fixed by typeorm/typeorm#8660

Comments

@spalt08
Copy link

spalt08 commented Feb 17, 2022

TypeORM has recently released the 0.2.42 version and added an exports field into package.json.

The snake-naming.strategy.js file currently imports the typeorm/util/StringUtils module from the typeorm package, which conflicts with the new package.json exports field.

Error: Cannot find module '/var/app/current/node_modules/typeorm/util/StringUtils'
   ...
  code: 'MODULE_NOT_FOUND',
  path: '/var/app/current/node_modules/typeorm/package.json'
}
@spaceblueinc
Copy link

I'm having same issue !

@giladgd
Copy link

giladgd commented Feb 17, 2022

@spalt08 @spacebluecompany This issue was just fixed in typeorm@0.2.43 (typeorm/typeorm#8660), update the typeorm version used in your project and try again

@spalt08 spalt08 closed this as completed Feb 18, 2022
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

Successfully merging a pull request may close this issue.

3 participants