mardi 4 février 2020

Compile Typescript to web development

Im having problems to compile this project and execute it correctly on the browser. Actualy the "master" branch works correctly, but im working with the branch "develop".

Is a simple web project with 1 html loading 1 ts/js that has imports to others ts/js files. I was triying to do it with Typescript to learn but im having troubles with the imports in js.

The problem has appeared after divide the project in multiples files and I think that is about the compilation mode related with the modules

The error:

Uncaught ReferenceError: exports is not defined at Application.js:2

I have been triying with other targets and modules, but the error is always similar. Am I missing something? Am I wrong with my knowledge about create a simple web page?

If you need more information or is duplicated, dont care about ask or write, I couldnt find any related that helps me. Thanks you.




Aucun commentaire:

Enregistrer un commentaire