[Fixed]-Error 404 is thrown, when .js extension is not specified during modul import in typescript

1👍

Assuming you have configured tsc to output your code to the ‘static/dist/js’ folder you should be able to configure Systemjs like this:

  <script>
        System.defaultJSExtensions = true;
        System.config({
            baseURL: "./static/dist/js"
        });

        System.import("main")
    </script>
👤toskv

Leave a comment