Forum Discussion
Christian Walling
Sep 02, 2019Copper Contributor
Warnings when doing gulp bundle
Hi, I'm building a solution with SharePoint Framework 1.9.1. It contains one single but rather complex Webpart. Whenever I do "gulp bundle" (with or without --ship) I'm getting a bunch of warning m...
- Sep 04, 2019
Hi Christian,
Is this a solution that you're opening from source control, or something you've completely written in your environment?
The first thing I'd do is delete and rebuilt the entire node_modules folder
rm rf node_modules npm i
If you're not working on this together with a group of people who all need to be on the same exact version of the project (for example if you are working alone in your environment, but you cloned the project from github) I'd delete the package-lock.json file as well before npm i
Thomas Berman
Sep 04, 2019Iron Contributor
Hi Christian,
Is this a solution that you're opening from source control, or something you've completely written in your environment?
The first thing I'd do is delete and rebuilt the entire node_modules folder
rm rf node_modules
npm i
If you're not working on this together with a group of people who all need to be on the same exact version of the project (for example if you are working alone in your environment, but you cloned the project from github) I'd delete the package-lock.json file as well before npm i
- Christian WallingSep 05, 2019Copper Contributor
thanks for your tips. Initially it didn't work but there were two library components which we developed linked to the solution. So I repeated the same steps for both libraries and after that the warnings disappeared.
I also deleted the package-lock.json in the main solution and the libraries. Why do you think that could be a problem for colleagues working together with me? I looked in our source control system and saw that neither the node_modules nor the package-lock.json are checked in there. So everyone has it's own version of that anyway and the others had no warnings when doing gulp serve on solutions using the library components.