You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been investigating this issue and found that the import tries to load the 'default' export instead of the 'bcrypt' export after the caching rewrite process. In the ESM system these are the same thing, but not in commonJS modules. They do not have a default value. To fix this we need to always use the name specified for default imports.
Describe the bug
Importing the default value of commonJS module like this:
Results into an undefined for
bcrypt
.Expected behavior
That the
bcrypt
values contains the library.The text was updated successfully, but these errors were encountered: