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

Problem with hot module reload #53

Open
luiguild opened this issue Jul 13, 2020 · 2 comments
Open

Problem with hot module reload #53

luiguild opened this issue Jul 13, 2020 · 2 comments

Comments

@luiguild
Copy link

Clean project
package.json

...
"dependencies": {
    ...
    "nativescript-vue": "^2.6.1",
    "nativescript-vue-navigator": "^1.2.0",
    "tns-core-modules": "^6.5.1",
    ...
}
...

router.js

...
const routes = {
  App: {
    component: App
  }
}
...

main.vue

...
    Navigator(
      defaultRoute="App"
    )
....

app.vue

<template lang="pug">
Page(
  actionBarHidden="false"
)
  ActionBar(title="NativeScript-Vue!")
  GridLayout(
    columns="*",
    rows="*"
  )
    Label.message(
      :text="msg",
      col="0",
      row="0"
    )
</template>

<script >
export default {
  data () {
    return {
      msg: 'hello world!'
    }
  }
}
</script>

When you change any template value or even the structure, all works fine, but when you change any script value/method/anything, server say that application it's refreshed, but nothing happens, you must need stop the server, clean platform and then start again...

When I remove the 'main.vue' file from render, and change to 'app.vue' directly (out of the router) anything works well...

Any ideas?

@luiguild
Copy link
Author

luiguild commented Nov 5, 2020

bump

@gravataLonga
Copy link

@luiguild hot module reload not work with any package/plugin on vue. It's a old issue already know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants