visNER icon indicating copy to clipboard operation
visNER copied to clipboard

Got error from angular while running 'ng serve'

Open katedou opened this issue 1 year ago • 5 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 avatar Sep 12 '22 15:09 katedou

@katedou did you find a solution to this issue? Having the same problem myself.

codylamberthope avatar Sep 29 '22 15:09 codylamberthope

Facing the same problem

EdiAnderegg avatar Nov 19 '22 15:11 EdiAnderegg

Experiencing the same issue, any luck with its resolution?

senglory avatar Jan 01 '23 20:01 senglory

Facing the same issue. Any resolution?

pradeep-017 avatar Feb 22 '23 09:02 pradeep-017

change versions in package.json it will resolve

RiyaShukla90 avatar Apr 20 '23 10:04 RiyaShukla90