-
Notifications
You must be signed in to change notification settings - Fork 422
dist/cjs/index.cjs not found in the dist package #845
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
Comments
having this issue myself. any idea how to circumvent this? |
Resolving the version to 15.3.0 is a workaround, that we just put in place. |
Having this issue myself in firebase-tools. Getting the following error:
What shall I do? |
Related questions: #845 |
@eugeneford - Manual fix is to copy index.js to index.cjs in that directory and firebase-tools will run correctly. |
@nene Hi Rene, it seems like the latest release has caused some issues. Related: firebase/firebase-tools#8343 |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
Expected behavior
requiring package succeeds without error in CJS environment
Actual behavior
Simply requiring package fails with error
Error: Cannot find module '<cwd>/node_modules/sql-formatter/dist/cjs/index.cjs'
The
main
field of the distributed package.json specifiesdist/cjs/index.cjs
(https://npmfs.com/package/sql-formatter/15.5.0/package.json#L6), but it doesn't exist (https://npmfs.com/package/sql-formatter/15.5.0/dist/cjs/). Maybe it should bedist/cjs/index.js
?Usage
The text was updated successfully, but these errors were encountered: