Nuxt.js: [Nuxt-edge] Wrong warning when plugin without extension is used

Created on 8 Jan 2019  路  3Comments  路  Source: nuxt/nuxt.js

Version

v2.3.4

Reproduction link

https://codesandbox.io/s/3q087vvlm1

Steps to reproduce

  1. Install latest edge version of Nuxt. I used 2.4.0-25781765.dcdf7c2d
  2. Create a plugin with such structure plugins/yourPluginName/index.js
  3. Import your plugin in nuxt.config.js like so
...
plugins: ["@/plugins/filters"]
...

What is expected ?

No warnings since empty folder can't be a plugin source

What is actually happening?

WARN Found 2 plugins that match the configuration, suggest to specify extension: 16:11:08

  • .../plugins/yourPluginName
  • .../plugins/yourPluginName/index.js

This bug report is available on Nuxt community (#c8429)
bug-report in progress

All 3 comments

Fixed by @manniL :) Edge release should be available in few minutes

Thanks for the fast report @AndrewBogdanovTSS :relaxed:

Looks to be fixed in the Nuxt.js v2.4.0-25783204.eef2af35. Thanks, guys! 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vadimsg picture vadimsg  路  3Comments

gary149 picture gary149  路  3Comments

vadimsg picture vadimsg  路  3Comments

surmon-china picture surmon-china  路  3Comments

lazycrazy picture lazycrazy  路  3Comments