Build is getting built recursively #862
Replies: 5 comments 6 replies
-
When I ran snowpack build --watch, I got this:
|
Beta Was this translation helpful? Give feedback.
-
What was the structure of folders and files in the MYTARGET directory before snowpack was launched? |
Beta Was this translation helpful? Give feedback.
-
hmm, can you try remove .vscode folder and repeat build? |
Beta Was this translation helpful? Give feedback.
-
The above issue was with snowpack 2.8.0.... Full git repo here for your reference, thanks - https://github.com/CryptoZorro/sfcless_template Tried with snowpack@next also, same issue... in watch mode, it actually goes into infinite build when I made a minor change to a file.. I had to ctrl-c to stop it! This below gif shows what happens during consecutive builds... |
Beta Was this translation helpful? Give feedback.
-
Ah that's terrible! Yea, our default behavior is to assume your entire current working directory is a part of your build, which would include your build directory. The easiest way to fix would be to add the directories that you care about (src, public, etc) to the But yea, we should always exclude this directory from your build! |
Beta Was this translation helpful? Give feedback.
-
Snowpack 2.8.0
Build getting built recursively within the build folder.
Here is my config
Beta Was this translation helpful? Give feedback.
All reactions