Skip to content

[edge] nuxt doesnt launch if only production dependencies installed #3316

@aldarund

Description

@aldarund

Version

v1.4.0

Reproduction link

none

Steps to reproduce

yarn install --production=true
yarn start

It will fail with following error:

$ nuxt start
internal/modules/cjs/loader.js:573
    throw err;
    ^

Error: Cannot find module 'figures'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:571:15)
    at Function.Module._load (internal/modules/cjs/loader.js:497:25)
    at Module.require (internal/modules/cjs/loader.js:626:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (C:\Dev\PycharmProjects\rasimplefront\t\node_modules\nuxt-edge\dist\nuxt.js:10:31)
    at Module._compile (internal/modules/cjs/loader.js:678:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)
    at Module.load (internal/modules/cjs/loader.js:589:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
    at Function.Module._load (internal/modules/cjs/loader.js:520:3)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Maybe there will be other modules if this one is added

What is expected ?

no import error

What is actually happening?

import error with module figures

This bug report is available on Nuxt.js community (#c7043)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions