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
When Upgrade v5 to v6 Cannot find module './errors' #13771
Comments
To which version of v6 did you upgrade. v6.11.0? |
i use sequelize^6.12.0-beta.2(latest) |
@zainiazhr14 I would recommend upgrading to v6.11.0 first since v6.12.0-beta2 is an experimental beta version. |
okey thank you very much i hope can solve this problem |
Could be due to #13710 will have to check it out. What node version are you using? |
node v14.18.2 |
On node Can you make an example of this? Are you using Also worth noting: If you have any imports directly to The transpiled code should live in |
This should have been resolved by #13795 which aliased Can you confirm that this is resolved @zainiazhr14? |
I'm having this issue with v6.13.0 Locally it works though, running node v14.17.6 In a docker container running an image based on node:12.16.1-buster it fails with this error:
|
Can reproduce locally via It works in |
That's because at the beginning of the typescript migration, files were moved from /lib to /lib/dist We've since added a workaround using node's exports field, but it requires node >=12.20.0 You should however avoid importing anything from /lib |
The issues are still there. I cloned the repo and tried running tests against mysql db. The test file test/integration/data-type.test.js still uses |
If you cloned the sequelize repo, you need to run It's normal for the entrypoint to be in What this thread is about is that users should not try to import anything from It's normal for internal sequelize code to do it however I'll close this issue as we've installed mitigation to not break v6 users that import from |
I have issue when try upgrade v5 to v6 with error "Error: Cannot find module './errors'" and it show from "/node_modules/sequelize/lib/data-types"
Please Helpp
Thank You
The text was updated successfully, but these errors were encountered: