6
respostas

[Dúvida] Erro SyntaxError

Boa noite,

Sempre que estou incluindo os códigos da o seguinte erro "SyntaxError: Unexpected end of input at /sketch.js:13:2". O que significa? Estou copiando exatamente como o professor esta fazendo. segue imagem

obrigada

6 respostas

Bom Dia Jéssica, a imagem não foi carregada

Olá Camila segue a imagem obrigada Insira aqui a descrição dessa imagem para ajudar na acessibilidade

Oi Jessica, está dando erro pois você precisa fechar o "}" de preload. Espero ter ajudado

Boa tarde Camila, Não estou conseguindo carregar as imagens, sabe me dizer qual o erro abaixo?

p5.js says: It looks like there was a problem loading your image. Try checking if the file path (https://preview.p5js.org/imagens/ator-1.png) is correct, hosting the file online, or running a local server.

More info: https://github.com/processing/p5.js/wiki/Local-server Event {isTrusted: true, type: "error", target: null, currentTarget: null, eventPhase: 0

p5.js says: It looks like there was a problem loading your image. Try checking if the file path (https://preview.p5js.org/imagens/estrada.png) is correct, hosting the file online, or running a local server.

More info: https://github.com/processing/p5.js/wiki/Local-server Event {isTrusted: true, type: "error", target: null, currentTarget: null, eventPhase: 0

p5.js says: It looks like there was a problem loading your image. Try checking if the file path (https://preview.p5js.org/imagens/carro-1.png) is correct, hosting the file online, or running a local server.

More info: https://github.com/processing/p5.js/wiki/Local-server Event {isTrusted: true, type: "error", target: null, currentTarget: null, eventPhase: 0

Insira aqui a descrição dessa imagem para ajudar na acessibilidade

Oi Jessica, compartilha o link do seu código para eu tentar entender o que esta acontecendo