VSO
VSO

Reputation: 12656

`ng serve` error - how to trouble shoot?

I pulled down an older angular project of ours (maybe 6 months) and wanted to use it as a template. When I run it, I get the errors below. I googled and read a couple of links on google. None of them have suggestions past upgrading the versions of some packages, like angular/cli, which I did. I am at a bit of a loss on how to troubleshoot this.

I am having a hard time narrowing it down to a file too. Seems to be an issue with something called raw-loader, but that's not in my package json (guess its a dependency of something) and it looks like this, which obviously isn't the issue:

/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ module.exports = function(content) { this.cacheable && this.cacheable(); this.value = content; return "module.exports = " + JSON.stringify(content); } module.exports.seperable = true;

THE ERROR: enter image description here

Installed package versions, if relevant:

[email protected] C:\code\go-local +-- @angular/[email protected] +-- @angular/[email protected] +-- @angular/[email protected] +-- @angular/[email protected] +-- @angular/[email protected] +-- @angular/[email protected] +-- @angular/[email protected] +-- @angular/[email protected] +-- @angular/[email protected] +-- @angular/[email protected] +-- @angular/[email protected] +-- @types/[email protected] +-- @types/[email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] (git://github.com/crdschurch/crds-reactive-auth.git#a73d58905ca917badbd88131a92cf8c29f3cd629) +-- [email protected] (git://github.com/crdschurch/crds-styles.git#92c7c1926a2e3109401ddb583ebaa27cc9aa7221) +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] ``-- [email protected]

npm ERR! peer dep missing: ajv@^6.0.0, required by [email protected] npm ERR! peer dep missing: ajv@^6.0.0, required by [email protected]

Upvotes: 0

Views: 1157

Answers (1)

Paul
Paul

Reputation: 478

It looks like the cli cannot get to some gyphicons used in bootstrap. I have run into this before and I would make sure your styles section in the angular-cli.json has a reference to the bootstrap directory in node_modules. Hope this helps.

Upvotes: 1

Related Questions