question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when running ng serve

See original GitHub issue

Issue type

I’m submitting a … (check one with “x”)

  • bug report
  • feature request

Issue description

Getting an error while running ng serve.

Current behavior:

Running ng serve fails compilation with error: ERROR in node_modules/@nebular/theme/components/layout/layout.module.d.ts(1,22): error TS-996002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class

Expected behavior:

ng serve should work without any errors.

Steps to reproduce:

  1. Create new Angular project: ng new --enable-ivy --inline-style --inline-template --style=scss -v --directory=admin Admin
  2. Install Nebular: ng add @nebular/theme
  3. Run ng serve

Other information:

npm, node, OS, Browser Same behaviour on Windows 10 and macOS Mojave

Angular, Nebular Angular: 8.0.0, Nebular: 4.0.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:10

github_iconTop GitHub Comments

2reactions
briancvncommented, Jul 19, 2019

This issue still happen in version 8.2.0-next.2 image

1reaction
nnixaacommented, Jun 14, 2019

Hi @Napas, the only thing I can say here is that we haven’t tested Nebular with Ivy yet. If you have a chance to dig in so that we can provide some workaround or fix something in Nebular, that would be great.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I have a new project, but when execute ng serve, I get error
I have tryed with ng update @angular/cli, now i get this error: This version of CLI is only compatible with Angular version 5.0.0...
Read more >
i got an error while running angular cli by using "ng serve ...
i got an error while running angular cli by using "ng serve"-"You have to be inside an angular-cli project in order to use...
Read more >
Ng Serve Angular Compile Time Error - YouTube
Sometimes, perhaps first time when you run the Angular application using ng serve command, you may face this compile time error : /ng.ps1 ......
Read more >
ng: command not found (Angular) error [Solved] | bobbyhadz
To solve the error "ng: command not found", install the angular cli package globally by running npm install -g @angular/cli@latest and restart your...
Read more >
The serve command requires to be run in an ... - C# Corner
This error often occurs when a project you are running is not an Angular project. It may also be the case when you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found