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

Error when using a ncc build with "typeorm-naming-strategies" #25

Open
maku opened this issue Mar 18, 2022 · 1 comment
Open

Error when using a ncc build with "typeorm-naming-strategies" #25

maku opened this issue Mar 18, 2022 · 1 comment

Comments

@maku
Copy link

maku commented Mar 18, 2022

After building a project with https://github.com/vercel/ncc I get an Error: "Cannot find module 'typeorm/util/StringUtils.js" when using "typeorm-naming-strategies" (which goes away when I drop using "SnakeNamingStrategy").

So the problem seems the usage of the
import { snakeCase } from 'typeorm/util/StringUtils';

Does anybody has an idea how to solve this problem?

@tonivj5
Copy link
Owner

tonivj5 commented Mar 27, 2022

Ey, @maku, have you tried with 2.0.0 or 4.0.0?

That was un error adding compatibility with ESM, but fixed upstream by typeorm. You can get more context from this other issue #22 (comment)

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

2 participants