I've created an extension for VSCode which generated barrel files for Dart and Flutter projects.
I've used Javascript and I've used the package loadash
. However, now that I have installed it, I keep getting the error: Cannot find module 'lodash'
.
I've been looking around and I do not know how to fix it, since I would not want that all users should install the loadash
dependency. Aren't dependecies added when created the extension package with vsce package
?
I solved it by removing the node_modules/**
line from the .vscodeignore
file.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.