Skip to content

Conversation

@sjdemartini
Copy link
Contributor

@sjdemartini sjdemartini commented Sep 15, 2024

The warning message appears for example as "Use --json to see the list of exports TypeScript can see but Node.js cannot." However, passing --json leads to an error: error: unknown option '--json'

Per --help documentation, the correct syntax is -f json or --format json, which I confirmed worked for me.


Side note: thank you for this super helpful package! I've been recently trying to deal with module resolution hell in a package of mine (still have yet to get things playing nicely with both CJS and ESM, now due to NextJS issues 😅), and this has been a handy resource 🙏

@changeset-bot
Copy link

changeset-bot bot commented Sep 15, 2024

🦋 Changeset detected

Latest commit: 66ada51

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@arethetypeswrong/cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@aryaemami59
Copy link
Contributor

Having the same issue, I think perhaps the documentation meant --format=json but not sure.

@andrewbranch
Copy link
Collaborator

Thank you, my bad! Can you add a changeset to this PR and we'll get it shipped ASAP?

The warning message appears for example as "Use --json to see the list
of exports TypeScript can see but Node.js cannot." However, passing
`--json` leads to an error: `error: unknown option '--json'`

Per `--help` argument definition, the correct syntax is `-f json` or
`--format json`, which I confirmed both worked for me.
@sjdemartini
Copy link
Contributor Author

@andrewbranch Sure, just added a changeset!

@andrewbranch andrewbranch merged commit 9bca854 into arethetypeswrong:main Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants