Skip to content

Task Error [serve, build, lint] Ended with error code 1 #1726

@javidrashid

Description

@javidrashid

Version

3.0.0-rc.3

Reproduction link

http://no-url

Steps to reproduce

Install a node module say node-sass, sass-loader, Everything goes for a toss after that. and any command you run, build, serve or lint, The task fails with the message Task Error [serve, build, lint] Ended with error code 1

What is expected?

It should work.

What is actually happening?

The whole setup crashes and you can't even run the app if you start over.


I did some additional debugging and you see it reports missing of the core modules when it happens like;

$ vue-cli-service inspect --mode production
module.js:549
throw err;
^

Error: Cannot find module 'request'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at /path/to/project/node_modules/request-promise-native/lib/rp.js:8:12
at module.exports (/path/to/project/node_modules/stealthy-require/lib/index.js:62:23)
at Object. (/path/to/project/node_modules/request-promise-native/lib/rp.js:7:15)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs reproductionThis issue is missing a minimal runnable reproduction, provided by the author

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions