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
🎁 error <PROJECT_NAME> main field is invalid, found `"dist/<PROJECT_NAME>.cjs"`, expected `"dist/<PROJECT_NAME>.cjs.js"`🎁 error <PROJECT_NAME> module field is invalid, found `"dist/<PROJECT_NAME>.mjs"`, expected `"dist/<PROJECT_NAME>.esm.js"`🎁 info Some of the errors above can be fixed automatically by running preconstruct fix🎁 info If you want to learn more about the above error, check https://preconstruct.tools/errors🎁 info If the error is not there and you want to learn more about it, open an issue at https://github.com/preconstruct/preconstruct/issues/newerror Command failed with exit code 1.info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
<PROJECT_NAME> is field name of package.json
The text was updated successfully, but these errors were encountered:
.mjs
and.cjs
extensions for ESM and CJS aren't supported.Dual package
My related issue: mongodb-js/ejson-shell-parser#157
Steps to reproduce
yarn init -y
yarn add @preconstruct/cli
package.json
src/index.js
fileyarn preconstruct build
<PROJECT_NAME> is field name of package.json
The text was updated successfully, but these errors were encountered: