Skip to content
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

Bump node.js version and switch from camel-case to change-case #1077

Merged
merged 2 commits into from
Aug 9, 2024

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
16 checks passed
@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.

1 participant