Skip to content

Cannot find module moment #79

Open
@IgnisDa

Description

@IgnisDa

I encountered this problem while deploying my nuxt app to Heroku. My app has a dependency on this module. I have target: 'server' set in my nuxt.config.js.

The solution was pretty simple. The installation instructions say that you have to install this dependency as a development one. But that works only for nuxt apps that have target: 'static' set in their nuxt.config.js.

I feel this should be mentioned in the installation instructions for the module

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions