loiane / angular2-crud-auth-routing

Sample Angular (2.x, 4.x) project with Contacts CRUD + routing + simple authentication
62 stars 44 forks source link

Problemas ao rodar o projeto #5

Open marcellopato opened 7 years ago

marcellopato commented 7 years ago

@loiane

D:\angular2-crud-auth-routing-master>ng test
Cannot read property 'AssetUrl' of undefined
TypeError: Cannot read property 'AssetUrl' of undefined
    at Object.<anonymous> (D:\angular2-crud-auth-routing-master\node_modules\@angular\compiler-cli\src\private_import_compiler.js:10:
51)

O que será? Já rodei o npm update mas nada deu certo.

fxcosta commented 7 years ago

Da uma olhada se isso resolve: https://github.com/angular/angular-cli/issues/2835

marcellopato commented 7 years ago

Esse problema sumiu, mas agora o app até roda, mas tem outros erros:

ERROR in ./src/app/contacts/contacts.module.ts
Module not found: Error: Can't resolve 'angular-in-memory-web-api/in-memory-web-api.module' in 'D:\angular2-crud-auth-routing-master\src\app\contacts'
 @ ./src/app/contacts/contacts.module.ts 15:0-90
 @ ./src async
 @ ./~/@angular/core/src/linker/system_js_ng_module_factory_loader.js
 @ ./~/@angular/core/src/linker.js
 @ ./~/@angular/core/src/core.js
 @ ./~/@angular/core/index.js
 @ ./src/main.ts
 @ multi main

ERROR in [default] D:\angular2-crud-auth-routing-master\src\app\contacts\contacts.module.ts:7:37
Cannot find module 'angular-in-memory-web-api/in-memory-web-api.module'.
loiane commented 7 years ago

Projeto atualizado. Verifique se a sua versão do Angular-cli é a mesma usada no projeto. []s