Static GitHub Issues

[1198] Modules into plugin file: "export 'default' (imported as 'plugin0') was not found in 'plugin0'

prev: HTML generated with `nuxt generate` don't have <head> and closing </body>,</html> tags
next: buildDir

I'm trying to implement custom filters with a filter.js file in the plugins folder, and importing that with the nuxt config file with plugins: ['~plugins/filters']. If i insert a simple console.log test into this file it seems to work fine, but if I try to import anything like Vue I get the following error:

 warning  in ./.nuxt/index.js

99:25-32 "export 'default' (imported as 'plugin0') was not found in 'plugin0'

 warning  in ./.nuxt/index.js

105:19-26 "export 'default' (imported as 'plugin0') was not found in 'plugin0'

I also get a Hot Reload Loop.

How can I get this working?

(Also, thanks for the great framework!)

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1058">#c1058</a>)</em></sub></div>