I just migrated to Angular 8 and I started getting the error
Module '"../../node_modules/@angular/router/router"' has no exported member 'NoPreloading'.
This error comes from the line:
import { NoPreloading, RouterModule, Routes } from '@angular/router';
It happens for all members of @angular/router
. What am I doing wrong? Dispite the error everything still works fine.
This may be due to some missing node-modules in your old project after the migration. Here are the steps to follow,
npm install