Black November

ATÉ 50% OFF

TÁ ACABANDO!

0 dias

0 horas

0 min

0 seg

1
resposta

Uncaught ReferenceError: System is not defined at HttpService.js:3

Olá! Quando na pagina http://localhost:3000/post.html, apresenta o erro: HttpService.js:3 Uncaught ReferenceError: System is not defined at HttpService.js:3 Cai nesta linha de código: System.register([], function (_export, _context) {....

código no github: https://github.com/ivanslongarai/javaScriptAlura01

Matricule-se agora e aproveite até 50% OFF

O maior desconto do ano para você evoluir com a maior escola de tecnologia

QUERO APROVEITAR
1 resposta

Fala ai Ivandiones, tudo bem? Dei uma olhada no projeto e fiz algumas mudanças, sendo:

No arquivo boot.js ajustei as importações:

import {NegotiationController} from "./controllers/NegotiationController";
import "./polyfill/fetch";

E no fetch mudei como é registrado o arquivo:

System.import([], function (_export, _context) {

Espero ter ajudado.