Vue-loader: yarn update issue

Created on 27 Feb 2017  路  9Comments  路  Source: vuejs/vue-loader

When I update vue-loader to the latest (11.1.3), yarn package manager will use vue-hot-reload-api version 2.0.6, not the latest(2.0.11). And it refuse to use the latest vue-hot-reload-api even if I explicitly add it as dependency. This will result in runtime error with latest vue esm runtime.

I know this is probably yarn's issue, but I assume that this can be resolved simply by bump dependencies in package.json?

Most helpful comment

I assume this is because yarn caches dependencies on your machine for some time.

you could clean the cache with yarn cache clean

All 9 comments

+1

+1

+1

Yeah, this causing error in my App since I updated to [email protected] [email protected]

img1
img2

Had to disable HMR for now...

I made a pr to update the dependencies.
Waiting for merge or just using npm install vue-hot-reload-api to update vue-hot-reload-api.

I assume this is because yarn caches dependencies on your machine for some time.

you could clean the cache with yarn cache clean

@LinusBorg ok I managed to resolve my previous issue by cleaning yarn cache, removing node_modules/yarn.lock and installing dependencies once again. But I have one more question though. I have disabled production tip in my app via config Vue.config.productionTip = false but this only works when HMR is disabled. Why is that?

Sorry to say, but I have no idea :D It may have something to do that the HMR API loads vue itself during the replacement process, in somehwere in that proceess the setting gets lost?

Maybe open an issue?

published 11.1.4 with bumped vue-hot-reload-api version.

Was this page helpful?
0 / 5 - 0 ratings