I'm new to Typescript and I've problems when I use import/export syntax in the browser. The terminal/compiler doesn't throw any kind of error. But google's console says:
GET http://127.0.0.1:5500/public/modules/file1.mod net::ERR_ABORTED 404 (Not Found)
Simply, I want to import a module inside my main file(main.ts)
index.html
<script type="module" src="./main.js"></script>
tsconfig.json
"module": "ES2015",
"rootDir": "./src/",
"target": "ES2016",
"lib": ["DOM", "ES2019"],
"esModuleInterop": true,
this is main.ts and it has to import a simple constant(pigreco)
import { pigreco } from './modules/file1.mod';
console.log(pigreco);