3
respostas

Estou com um problema ao subir o servidor,alguem pode me ajudar,segue o erro.

C:\Users\wquei\Desktop\angularProject> ng serve --open ** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **

Date: 2019-03-14T03:12:13.131Z Hash: 3130830d7b66e7df68d5 Time: 2370ms chunk {main} main.js, main.js.map (main) 1.93 kB [initial] [rendered] chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 683 bytes [initial] [rendered] chunk {runtime} runtime.js, runtime.js.map (runtime) 5.22 kB [entry] [rendered] chunk {styles} styles.js, styles.js.map (styles) 15.6 kB [initial] [rendered] chunk {vendor} vendor.js, vendor.js.map (vendor) 335 kB [initial] [rendered]

ERROR in node_modules/rxjs/internal/types.d.ts(81,44): error TS1005: ';' expected. node_modules/rxjs/internal/types.d.ts(81,74): error TS1005: ';' expected. node_modules/rxjs/internal/types.d.ts(81,77): error TS1109: Expression expected.

i 「wdm」: Failed to compile. (node:14524) UnhandledPromiseRejectionWarning: Error: spawn cmd ENOENT at Process.ChildProcess.handle.onexit (internal/childprocess.js:246:19) at onErrorNT (internal/child_process.js:421:16) at processTicksAndRejections (internal/process/next_tick.js:76:17) (node:14524) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:14524) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

QUANDO EU RODO O LOCALHOST:4200 APARECE CANNOT GET/.

3 respostas

Oi wqueiroz23 tudo certo ?

Exclui a pasta node_modules

Depois entra na pasta do projeto pelo terminal e roda o comando npm install

E tentar subir o server novamente com ng serve --open

Olá,

Neste post abaixo tem a solução:

https://cursos.alura.com.br/forum/topico-erro-ao-subir-servidor-localmente-77628

No meu caso, para resolver tive que alterar a chave "rxjs" de "^6.0.0" para "6.0.0" nos arquivos "package.json" e "package-lock.json" (neste segundo arquivo há várias ocorrências dessa chave).

Olá! Valeu! Deu certo pra mim! Precisei alterar apenas no arquivo package.json.

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software