Skip to content

Build fails when jquery.cookie is added to app.js #118

@nmk

Description

@nmk

I want to use jquery.cookie in my ember-tools managed project.

I added require("../vendor/jquery.cookie") to app.js and builds started failing with the following message (/path/to/project is here as an example, the real path is in fact correct):

Error: Cannot find module 'jquery' from '/path/to/project/vendor'

/usr/local/lib/node_modules/ember-tools/src/commands/build.js:102
    if (error && !env.watch) throw new Error(error);
                               ^
Error: Error: Command failed: Error: Cannot find module 'jquery' from '/path/to/project/vendor'

If I remove the require("../vendor/jquery.cookie") from app.js, the build works as expected.

Any idea what might be wrong?

Tanks a bunch in advance!

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