birgersp / vscode-cpp-header-refactor

2 stars 1 forks source link

Cannot find module 'replace-in-file #2

Closed osmaczko closed 2 years ago

osmaczko commented 4 years ago

VS code fails to activate the extension.

[exthost] [error] Activating extension birgersp.cpp-header-refactor failed due to an error:
[exthost] [error] Error: Cannot find module 'replace-in-file'
birgersp commented 4 years ago

Thank you.

Maybe the 'replace-in-file' dependency is incorrectly added to the project. It should probably be a runtime dependency, rather than dev dependency which it currently is.

Not sure when I'll have time to fix.

birgersp commented 3 years ago

As mentioned in the readme I am very much open for PRs. If someone wants to fix this then be my guest :)

ollbx commented 2 years ago

Is there some workaround outside of fixing the code for this? Unfortunately I don't have enough experience with js/ts development to fix the problem, but I could really use this extension.

birgersp commented 2 years ago

I'll try to get this fixed later today

birgersp commented 2 years ago

I have published a new version, the issue should be fixed now.