3
respostas

ng serve --open dando erro agora

Boa tarde, fiz o curso tranquilamente até a aula 3 e quando fui abrir novamente com ng serve --open me deu os seguintes erros.

ERROR in node_modules/@types/jasmine/index.d.ts(142,47): error TS1005: ';' expected. node_modules/@types/jasmine/index.d.ts(142,90): error TS1005: '(' expected.

node_modules/@types/jasmine/index.d.ts(142,104): error TS1005: ']' expected.

node_modules/@types/jasmine/index.d.ts(142,112): error TS1005: ',' expected.

node_modules/@types/jasmine/index.d.ts(142,113): error TS1136: Property assignment expected.

node_modules/@types/jasmine/index.d.ts(142,121): error TS1005: ')' expected.

node_modules/@types/jasmine/index.d.ts(142,147): error TS1005: '(' expected.

node_modules/@types/jasmine/index.d.ts(142,162): error TS1005: ']' expected.

node_modules/@types/jasmine/index.d.ts(142,163): error TS1005: ',' expected.

node_modules/@types/jasmine/index.d.ts(142,164): error TS1136: Property assignment expected.

node_modules/@types/jasmine/index.d.ts(142,165): error TS1136: Property assignment expected.

node_modules/@types/jasmine/index.d.ts(142,179): error TS1005: ',' expected.

node_modules/@types/jasmine/index.d.ts(142,183): error TS1005: ':' expected.

node_modules/@types/jasmine/index.d.ts(142,208): error TS1005: '{' expected.

node_modules/@types/jasmine/index.d.ts(142,217): error TS1005: ':' expected.

node_modules/@types/jasmine/index.d.ts(142,222): error TS1005: ',' expected.

node_modules/@types/jasmine/index.d.ts(142,227): error TS1005: ':' expected.

node_modules/@types/jasmine/index.d.ts(142,228): error TS1109: Expression expected.

node_modules/@types/jasmine/index.d.ts(142,230): error TS1005: ')' expected. node_modules/@types/jasmine/index.d.ts(635,30): error TS1005: ';' expected.

node_modules/@types/jasmine/index.d.ts(720,1): error TS1128: Declaration or statement expected.

3 respostas

Boa tarde Hugo,

Tente deletar a pasta node_modules e rodar o comando 'npm install'.

Após isso rode o comando ng serve -o

Se o erro persistir avise aqui.

Fiz o passo acima e o erro continuar acontecendo.

Hugo,

Vc acha que consegue subir seu projeto no github ou compartillhar seu código mais recente?