Topic: MDB Angular 6 - Cannot find module '@angular/core'.

Idris pro asked 6 years ago


Hi, I followed the 5min quickstart angular guide, I started with a fresh project, ran the NPM commands to install the modules, change the styling to scss, whenever I try and run the project, via NPM Start or ng serve, my console gets spammed with red text saying; error in ../node_modules/angular-bootstrap-md/angular-bootstrap-md/<modules>/file:(line x): error TS2307: Cannot find module '@angular/core'. it is happening for buttons, cards, carousel,collapse, charts, dropdown .. etc. Is there an easy fix for this, Thanks heaps, Idris.

Damian Gemza staff commented 6 years ago

Dear Idris, Could you please show me your app.module.ts (or the other module where you're importing MDB), package.json, angular.json files? Best Regards, Damian

Idris pro commented 6 years ago

Hi Damian, Sure: https://github.com/IdrisDose/MEAN-ShareX/blob/master/src/client/app/app.module.ts .

Damian Gemza staff commented 6 years ago

Tried to reproduce your case but without success. I've copied your repo, ran npm install, changes styles.css to styles.scss, installed necessary libraries such as hammer, fontawesome, then ran ng serve and everything was okay. Could you provide me reproduction steps to watch your problem? Best Regards, Damian


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Opened

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags