Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got error from angular while running 'ng serve' #40

Open
katedou opened this issue Sep 12, 2022 · 5 comments
Open

Got error from angular while running 'ng serve' #40

katedou opened this issue Sep 12, 2022 · 5 comments

Comments

@katedou
Copy link

katedou commented Sep 12, 2022

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.
@codylamberthope
Copy link

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

@EdiAnderegg
Copy link

Facing the same problem

@senglory
Copy link

senglory commented Jan 1, 2023

Experiencing the same issue, any luck with its resolution?

@pradeep-017
Copy link

Facing the same issue. Any resolution?

@RiyaShukla90
Copy link

change versions in package.json it will resolve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants