Bump node.js version and switch from camel-case to change-case#1077
Merged
Bump node.js version and switch from camel-case to change-case#1077
Conversation
AArnott
commented
Aug 9, 2024
Collaborator
Author
AArnott
left a comment
There was a problem hiding this comment.
I'm struggling to solve this problem when running yarn gulp:
Error [ERR_REQUIRE_ESM]: require() of ES Module D:\source\repos\Nerdbank.GitVersioning\src\nerdbank-gitversioning.npm\node_modules\change-case\dist\index.js from D:\source\repos\Nerdbank.GitVersioning\src\nerdbank-gitversioning.npm\out\index.js not supported.
Instead change the require of D:\source\repos\Nerdbank.GitVersioning\src\nerdbank-gitversioning.npm\node_modules\change-case\dist\index.js in D:\source\repos\Nerdbank.GitVersioning\src\nerdbank-gitversioning.npm\out\index.js to a dynamic import() which is available in all CommonJS modules.
at D:\source\repos\Nerdbank.GitVersioning\src\nerdbank-gitversioning.npm\out\index.js:44:75
at async getVersion (D:\source\repos\Nerdbank.GitVersioning\src\nerdbank-gitversioning.npm\out\index.js:44:27)
at async Object.setPackageVersion (D:\source\repos\Nerdbank.GitVersioning\src\nerdbank-gitversioning.npm\out\index.js:59:24)
The thing is, I have switched from require to import, but the error remains.
This was referenced Aug 1, 2025
This was referenced Aug 15, 2025
This was referenced Sep 3, 2025
This was referenced Sep 22, 2025
This was referenced Sep 29, 2025
This was referenced Oct 24, 2025
This was referenced Jan 16, 2026
This was referenced Jan 23, 2026
This was referenced Feb 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.