tralves / groceries-ns-vue

🍏 🍍 🍓 A NativeScript+Vue iOS and Android app for managing grocery lists
303 stars 65 forks source link

Webpack watcher creates an endless loop #13

Closed tjvantoll closed 6 years ago

tjvantoll commented 6 years ago

Hey @tralves,

Awesome work on this sample! Finally got some time to look through it today and it’s amazing to see this working with Vue.

I had no issues getting the app up and running with your instructions, but I did have a problem during development. Specifically, every time I make a change I get stuck in a loop where the webpack watcher detects a change, and triggers an update of the app.... but that update keeps happening over and over again. Basically I’m stuck in an endless loop of installs.

Any idea what might be going on here? I’m using tns run android if it matters, and I’m happy to provide any more detail that might help you figure out what’s up.

Again thanks for your work on this sample. Hopefully this is just something silly I’m doing.

tjvantoll commented 6 years ago

I confirmed that I hit the same loop when working on iOS. The change I make does get applied appropriately, I just get stuck in a loop.

jiraiya972 commented 6 years ago

try to ignore the tns folder in your webpack.config.js

I add ignore plugin

new webpack.WatchIgnorePlugin([join(__dirname, 'tns')])

Work for me.