Always reload page in `Meteor 1.8 + Vue`?

I tried to upgrade to Meteor1.8 + Vue (akryum:vue-component@0.14.1).
It always reload page???

/package.js
  "dependencies": {
    "@babel/runtime": "^7.0.0",
    "@fortawesome/fontawesome": "^1.1.8",
    "@fortawesome/fontawesome-free-brands": "^5.0.13",
    "@fortawesome/fontawesome-free-regular": "^5.0.13",
    "@fortawesome/fontawesome-free-solid": "^5.0.13",
    "animate.css": "^3.7.0",
    "awesome-mask": "^1.1.1",
    "axios": "^0.18.0",
    "bcrypt": "^3.0.1",
    "bignumber.js": "^7.2.1",
    "collect.js": "^4.0.28",
    "countup.js": "^1.9.3",
    "element-ui": "^2.4.8",
    "express": "^4.16.4",
    "faker": "^4.1.0",
    "jquery": "^3.3.1",
    "json2csv": "^4.2.1",
    "lodash": "^4.17.11",
    "mathjs": "^5.2.0",
    "meteor-node-stubs": "^0.4.1",
    "moment": "^2.22.2",
    "moment-timezone": "^0.5.21",
    "nprogress": "^0.2.0",
    "numeral": "^2.0.6",
    "printd": "^1.0.1",
    "simpl-schema": "^1.5.3",
    "to-css": "^1.2.1",
    "v-money": "^0.8.1",
    "vue": "^2.5.17",
    "vue-avatar": "^2.1.6",
    "vue-barcode-scanner": "^0.6.0",
    "vue-clipboard2": "^0.2.1",
    "vue-countup-v2": "^1.0.3",
    "vue-data-tables": "^3.4.4",
    "vue-googlemaps": "^0.1.1",
    "vue-i18n": "^8.2.1",
    "vue-infinite-loading": "^2.3.5",
    "vue-infinite-scroll": "^2.0.2",
    "vue-json-excel": "^0.2.96",
    "vue-json-pretty": "^1.4.1",
    "vue-markdown": "^2.2.4",
    "vue-meta": "^1.5.5",
    "vue-meteor-tracker": "^2.0.0-beta.4",
    "vue-outside-events": "^1.1.3",
    "vue-progressbar": "^0.7.5",
    "vue-router": "^3.0.1",
    "vue-types": "^1.3.3",
    "vuex": "^3.0.1",
    "vuex-router-sync": "^5.0.0",
    "xlsx-populate": "^1.17.0"
  },

There is a known bug reported about this. To work around it, you need to set the NO_HMR=1 environment variable

thanks for your reply.
Place to set NO_HMR=1???
Ex:

// Client
Meteor.startup(() => {
  new Vue({......})
})

Please…

in your command line / where you run the process as an environment variable:

On linux / mac

export NO_HMR=1

On windows

set NO_HMR=1
1 Like

Thanks I will try :sunny:

Still don’t work for me
export NO_HMR=1

I’ve issued a pull-request which should make the HMR module work normal again!

@theara

1 Like