-
Notifications
You must be signed in to change notification settings - Fork 2.6k
fix(js): recognize NodeNext as ESM #31508
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
I wonder if there is, or if there needs to be, a further check to verify that the adjacent package.json contains |
|
@Coly010 let's remove me as the reviewer 😅 hehe I have enough |
👷 Deploy request for nx-docs pending review.Visit the deploys page to approve it
|
|
View your CI Pipeline Execution ↗ for commit f837e83
☁️ Nx Cloud last updated this comment at |
<!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior NodeNext is not recognized as ESM. This causes this warning message to be logged, even when you have `"type": "module",` in the `package.json` file and are compile TypeScript to `"module": "NodeNext"`. ``` Package type is set to "module" but "cjs" format is included. Going to use "esm" format instead. You can change the package type to "commonjs" or remove type in the package.json file. ``` ## Expected Behavior Don't log this message. It is incorrect. --------- Co-authored-by: Colum Ferry <[email protected]>
|
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Current Behavior
NodeNext is not recognized as ESM. This causes this warning message to be logged, even when you have
"type": "module",in thepackage.jsonfile and are compile TypeScript to"module": "NodeNext".Expected Behavior
Don't log this message. It is incorrect.