Solucionado (ver solução)
Solucionado
(ver solução)
3
respostas

Falha ao executar o comando "ng serve --open"

Falha ao executar o comando "ng serve --open" Detalhes:

MacBook-Pro-de-Rafael:alurapic Rafael$ ng serve --open ** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ ** 10% building modules 6/6 modules 0 activeℹ 「wds」: Project is running at http://localhost:4200/ ℹ 「wds」: webpack output is served from / ℹ 「wds」: 404s will fallback to //index.html

Date: 2020-11-27T14:33:45.599Z Hash: 93243234e3b3ec9719c8 Time: 17969ms chunk {main} main.js, main.js.map (main) 357 kB [entry] [rendered] chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 357 kB [entry] [rendered] chunk {runtime} runtime.js, runtime.js.map (runtime) 5.22 kB [entry] [rendered] chunk {styles} styles.js, styles.js.map (styles) 372 kB [entry] [rendered] chunk {vendor} vendor.js, vendor.js.map (vendor) 5.5 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. node_modules/rxjs/internal/types.d.ts(82,52): error TS1005: ';' expected. node_modules/rxjs/internal/types.d.ts(82,88): error TS1005: ';' expected. node_modules/rxjs/internal/types.d.ts(82,92): error TS1109: Expression expected.

ℹ 「wdm」: Failed to compile.

3 respostas

Já tentei a solução de excluir a pasta "node_modules", executar o comando "npm install" antes de executar o comando "ng serve --open"

Já tentei também a solução de executar o comando "npm install rxjs@6.0.0 --save" antes de executar o comando "ng serve --open"

solução!

Encontrei uma solução via google.

Alterei a seguinte linha do arquivo package.json :

De: "rxjs": "^6.0.0", Para: "rxjs": "6.0.0",

Em seguida, o comando "ng serve --open" funcionou conforme esperado