shaketbaby / directory-named-webpack-plugin

A Webpack plugin that treats a file with the name of directory as the index file
MIT License
182 stars 17 forks source link

Uncaught ReferenceError: __VUE_HMR_RUNTIME__ is not defined #48

Open webmasterslava opened 4 years ago

webmasterslava commented 4 years ago

getting the following error when adding this plugin to webpack config: Uncaught ReferenceError: __VUE_HMR_RUNTIME__ is not defined this error disappears when I disable this plugin

flemenach commented 3 years ago

Hi ! Just had the same issue, you can fix that by excluding the node_modules from directory-named-webpack-plugin :

resolve: {
  plugins: [new DirectoryNamedPlugin({
    exclude: /node_modules/,
  })],
},