Got error from angular while running 'ng serve'
katedou opened this issue · comments
Hi,
I installed the dependencies along the tutorial by running 'npm install'.
The angular is not automatically installed, so I ran npm install -g @angular/cli
to install the angular.
While running the ng serve
I got the error here below.
An unhandled exception occurred: Named export 'CUSTOM_ELEMENTS_SCHEMA' not found. The requested module '@angular/compiler' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from '@angular/compiler';
const { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } = pkg;
See "/private/var/folders/j0/6rwmzh011j9f6pnty3q00w0w0000gn/T/ng-aXWHbe/angular-errors.log" for further details.
@katedou did you find a solution to this issue? Having the same problem myself.
Facing the same problem
Experiencing the same issue, any luck with its resolution?
Facing the same issue. Any resolution?
change versions in package.json it will resolve