Skip to content

Conversation

@AArnott
Copy link
Collaborator

@AArnott AArnott commented Aug 9, 2024

No description provided.

Copy link
Collaborator Author

@AArnott AArnott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@AArnott AArnott marked this pull request as ready for review August 9, 2024 14:27
@AArnott AArnott enabled auto-merge August 9, 2024 14:27
@AArnott AArnott merged commit 81162b8 into main Aug 9, 2024
@AArnott AArnott deleted the bumpNodeJs branch August 9, 2024 14:48
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.

2 participants