Nuxt.js: `modules: ['@@']` behavior no longer works

Created on 16 Dec 2018  路  1Comment  路  Source: nuxt/nuxt.js

Version

v2.4.0-25749301.ad286acd (edge)

Reproduction link

https://github.com/Developmint/nuxt-webfontloader/pull/3

Renovate Bot upgrading to last nuxt-edge version make tests fail

https://travis-ci.com/Developmint/nuxt-webfontloader/jobs/165424361

Steps to reproduce

Upgrade to last nuxt-edge version (2.4.0-25749301.ad286acd)

=> Usage of modules['@@'] in nuxt.config.js does not work anymore.
Just use this behavior to reproduce the error shown in the CI pipeline linked to the reproduction link.

This behavior is a trick to make Nuxt resolve the main entry of the package.json as a module, it's used in testing Nuxt module packages.

What is expected ?

The behavior must still work.

What is actually happening?

The behavior doesn't work anymore.

Additional comments?

Seems to be related to https://github.com/nuxt/nuxt.js/pull/4548

This bug report is available on Nuxt community (#c8318)
bug-report

Most helpful comment

I see why this is happening, I'm putting a PR together now that should cover both cases

>All comments

I see why this is happening, I'm putting a PR together now that should cover both cases

Was this page helpful?
0 / 5 - 0 ratings

Related issues

uptownhr picture uptownhr  路  3Comments

jaredreich picture jaredreich  路  3Comments

nassimbenkirane picture nassimbenkirane  路  3Comments

gary149 picture gary149  路  3Comments

msudgh picture msudgh  路  3Comments