Skip to content

Uncaught (in promise) Error: (SystemJS) XHR error (404 Not Found) loading http://localhost:4200/src/main.ts(…) #2896

Description

@Sri276286

Hi,

I am using angular-cli project structure

I want to use systemjs with angular-cli.

I included the following in index.html file

<script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.40/system.src.js"></script> <script> System.import('../src/main.ts'); </script>

I have main.ts file present under src . But still,it's throwing error like

image

Please let me know what wriong I am doing.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions