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

How to use system js with Angular 14 and typescript #2453

Open
1 of 10 tasks
mrgopalakrishnan opened this issue Feb 9, 2023 · 1 comment
Open
1 of 10 tasks

How to use system js with Angular 14 and typescript #2453

mrgopalakrishnan opened this issue Feb 9, 2023 · 1 comment

Comments

@mrgopalakrishnan
Copy link

  • SystemJS Version:
  • Which library are you using?
    • system.js
    • s.js
    • system-node.cjs
  • Which extras are you using?
    • AMD extra
    • Named Exports
    • Named Register
    • Transform
    • Use Default
    • Global
    • Dynamic Import Maps
  • Are you using any custom hooks?

Question

How to use system js in Angular 14 with type script? i'm trying to import system js in angular as below.

 "scripts": [
              "node_modules/systemjs/dist/system.js"
            ]

And trying to set few modules in main.ts like below.

declare const SystemJS;
import * as angularCore from '@angular/core';
import * as angularCommon from '@angular/common';
SystemJS.set('@angular/core', SystemJS.newModule(angularCore));
SystemJS.set('@angular/common', SystemJS.newModule(angularCommon));

And i'm getting error
image

@long-woo
Copy link

long-woo commented Feb 26, 2023

Modify SystemJS to System.

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

2 participants