Skip to content

Cannot Find Module error #2

@swateek

Description

@swateek

My application was generated using Yeoman, and in the server/app.js many require statements have absolute paths to respective files.

While building the distribution over grunt, the paths in the server/app.js are written over.

For example, var config = require('./config/environment'); changes to probably var config = require('./server/config/environment'); and hence I find a "Cannot Find Module" error.

Any help? Solution?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions