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

Error in VSCode #6

Closed
jmcorpdev opened this issue Jan 24, 2020 · 8 comments
Closed

Error in VSCode #6

jmcorpdev opened this issue Jan 24, 2020 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@jmcorpdev
Copy link

jmcorpdev commented Jan 24, 2020

I am actually working on the creation of react-component template and testing but there is an error in the extension :

Activating extension 'yongwoo.template' failed: Cannot find module 'fs-extra'
Require stack:
- /Users/me/.vscode/extensions/yongwoo.template-1.1.0/extension.js
- /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/loader.js
- /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap-amd.js
- /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap-fork.js.

The ugly work around is to type npm install inside the folder /Users/me/.vscode/extensions/yongwoo.template-1.1.0/

@jmcorpdev
Copy link
Author

I'm trying to fix the error, but I don't see any solution.
The only solution is to remove fs-extra

@stegano
Copy link
Owner

stegano commented Jan 25, 2020

Thanks for the bug report.
I've found a problem with the v1.1.0 version of template extensions not working properly. As a temporary measure, please check the link below and install the old version (v1.0.x). I'll fix it soon.

@all-contributors please add @arnogues for bug

@allcontributors
Copy link
Contributor

@stegano

I've put up a pull request to add @arnogues! 🎉

@stegano stegano added the bug Something isn't working label Jan 25, 2020
@stegano stegano self-assigned this Jan 25, 2020
@jmcorpdev
Copy link
Author

Thanks for the bug report.
I've found a problem with the v1.1.0 version of template extensions not working properly. As a temporary measure, please check the link below and install the old version (v1.0.x). I'll fix it soon.

@all-contributors please add @arnogues for bug

I d'un npm install where the extension is installés and it work properly.

@allcontributors
Copy link
Contributor

@arnogues

I've updated the pull request to add @arnogues! 🎉

@stegano
Copy link
Owner

stegano commented Jan 25, 2020

@arnogues
This issue was caused by not including dependency libraries in the extension package because the .vscodeignore file contains the node_modules path.

since v1.1.0 version, source files were bundled using 'webpack' and there was a problem loading templates that existed inside the extension, so we changed and republish them in the same way as before.

This issue is resolved in v1.1.4.
Thanks for reporting the bug

stegano added a commit that referenced this issue Jan 25, 2020
- remove webpack configuration and dependency libraries

related: #6
@jmcorpdev
Copy link
Author

The new version seems working very well.

@stegano
Copy link
Owner

stegano commented Jan 27, 2020

This issue will be closed Thanks!

@stegano stegano closed this as completed Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants