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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[node-plop] Can't use node-plop inside vscode extension #368
Comments
@Stun3R have you figured a solution to this? |
@amwmedia would it be possible to know if there a version of |
@ashish-gawali-adi do not tag individual maintainers. There is no node-plop CJS release. |
Sorry for that. Thank you for the answer. |
jumping on this thread, I am having the issue and it's works fine for 0.26.1 but for any version above I got the same error. Is there any manage change that went in from 0.26.* to the current version 0.32.*? |
Hi 馃憢馃徏
I'm trying to do a vscode-extension which generate components based on a
plopfile.js
that I usefor a plop CLI.As it is mandatory to do it programmatically, I use
node-plop
but each time I test the extension I get the following error:require() of ES Module from not supported. Instead change the require of index.js in... to a dynamic import() which is available in all CommonJS modules.
with the path pointing tonode-plop
.I did some research about it & it looks like as VSCode is based on electron & they don't support ESM package only. microsoft/vscode#130367
Maybe I'm missing something out of the box and would be glad to have your thought on it 馃檹馃徏
The text was updated successfully, but these errors were encountered: