Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

162
Views
¿Por qué no puedo usar el código javascript transpilado mecanografiado?

Estoy aprendiendo TypeScript y el codigo que transpiler no puedo usar por un error en el html, es este:

error en la consola

Estoy tratando de usar el código transpilado en mi html

html :

 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> </body> <script type="module" src="./dist/app.js"></script> </html>

mi directorio:

Directorio

paquete.json:

 { "name": "ts", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", "license": "MIT" }

tsconfig.json:

 { "compilerOptions": { "target": "es5", "moduleResolution": "classic", "outDir": "./dist", "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "strict": true, "skipLibCheck": true } }

Como puede ver, es muy simple, pero realmente no entiendo por qué no puedo, busqué un tiempo y vi algo sobre cargadores de módulos y herramientas de compilación, pero no lo entiendo, y no saber cómo implementarlos.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!