Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@JonathanWilbur
Copy link
Contributor

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.

@JonathanWilbur JonathanWilbur requested a review from a team as a code owner June 9, 2025 16:23
@JonathanWilbur JonathanWilbur requested a review from mandarini June 9, 2025 16:23
@vercel
Copy link

vercel bot commented Jun 9, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
nx-dev Ready Ready Preview Dec 11, 2025 3:51pm

@FrozenPandaz FrozenPandaz added the priority: medium Medium Priority (not high, not low priority) label Jun 23, 2025
@Coly010
Copy link
Contributor

Coly010 commented Dec 11, 2025

I wonder if there is, or if there needs to be, a further check to verify that the adjacent package.json contains type:module before we set it as esm

@mandarini
Copy link
Contributor

@Coly010 let's remove me as the reviewer 😅 hehe I have enough supabase-js PRs to review 😝

@Coly010 Coly010 removed the request for review from mandarini December 11, 2025 13:40
@Coly010 Coly010 self-assigned this Dec 11, 2025
@Coly010 Coly010 self-requested a review December 11, 2025 13:40
@netlify
Copy link

netlify bot commented Dec 11, 2025

👷 Deploy request for nx-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit f837e83

@nx-cloud
Copy link
Contributor

nx-cloud bot commented Dec 11, 2025

View your CI Pipeline Execution ↗ for commit f837e83

Command Status Duration Result
nx affected --targets=lint,test,test-kt,build,e... ✅ Succeeded 4m 8s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 2m 22s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 11s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 3s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2025-12-11 16:51:59 UTC

@Coly010 Coly010 changed the title fix(js): Recognize NodeNext as ESM fix(js): recognize NodeNext as ESM Dec 11, 2025
@Coly010 Coly010 merged commit b6aa097 into nrwl:master Dec 11, 2025
16 of 18 checks passed
FrozenPandaz pushed a commit that referenced this pull request Dec 15, 2025
<!-- 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]>
@github-actions
Copy link
Contributor

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

priority: medium Medium Priority (not high, not low priority)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants