2017-12-13 23 views
0

私はAOTのビルドに恐ろしい問題があります。開発モードではすべて問題ありません。が遅れています。モジュールが見つかりません

ERROR in ./src/$$_gendir lazy 
Module not found: Error: Can't resolve 'C:\Users\jarkro\IdeaProjects\vlo-frontend\src\$$_gendir\app\view-auth\auth.module.ngfactory.ts' in 'C:\Users\jarkro\IdeaProjects\vlo-frontend\src\$$_gendir' 
resolve 'C:\Users\jarkro\IdeaProjects\vlo-frontend\src\$$_gendir\app\view-auth\auth.module.ngfactory.ts' in 'C:\Users\jarkro\IdeaProjects\vlo-frontend\src\$$_gendir' 
    using description file: C:\Users\jarkro\IdeaProjects\vlo-frontend\package.json (relative path: ./src/$$_gendir) 
    Field 'browser' doesn't contain a valid alias configuration 
    after using description file: C:\Users\jarkro\IdeaProjects\vlo-frontend\package.json (relative path: ./src/$$_gendir) 
    using description file: C:\Users\jarkro\IdeaProjects\vlo-frontend\package.json (relative path: ./src/$$_gendir/app/view-auth/auth.module.ngfactory.ts) 
     no extension 
     Field 'browser' doesn't contain a valid alias configuration 
     C:\Users\jarkro\IdeaProjects\vlo-frontend\src\$$_gendir\app\view-auth\auth.module.ngfactory.ts doesn't exist 
     .ts 
     Field 'browser' doesn't contain a valid alias configuration 
     C:\Users\jarkro\IdeaProjects\vlo-frontend\src\$$_gendir\app\view-auth\auth.module.ngfactory.ts.ts doesn't exist 
     .js 
     Field 'browser' doesn't contain a valid alias configuration 
     C:\Users\jarkro\IdeaProjects\vlo-frontend\src\$$_gendir\app\view-auth\auth.module.ngfactory.ts.js doesn't exist 
     as directory 
     C:\Users\jarkro\IdeaProjects\vlo-frontend\src\$$_gendir\app\view-auth\auth.module.ngfactory.ts doesn't exist 
[C:\Users\jarkro\IdeaProjects\vlo-frontend\src\$$_gendir\app\view-auth\auth.module.ngfactory.ts] 
[C:\Users\jarkro\IdeaProjects\vlo-frontend\src\$$_gendir\app\view-auth\auth.module.ngfactory.ts.ts] 
[C:\Users\jarkro\IdeaProjects\vlo-frontend\src\$$_gendir\app\view-auth\auth.module.ngfactory.ts.js] 
[C:\Users\jarkro\IdeaProjects\vlo-frontend\src\$$_gendir\app\view-auth\auth.module.ngfactory.ts] 
@ ./src/$$_gendir lazy 
@ ./node_modules/@angular/core/@angular/core.es5.js 
@ ./src/main.ts 
@ multi ./src/main.ts 
ERROR in ./src/$$_gendir lazy 
Module not found: Error: Can't resolve 'C:\Users\jarkro\IdeaProjects\vlo-frontend\src\$$_gendir\app\view-ewniosek\ewniosek-views\ewniosek.module.ngfactory.ts' in 'C:\Users\jarkro\IdeaProjects\vlo-frontend\src\$$_gendir' 
resolve 'C:\Users\jarkro\IdeaProjects\vlo-frontend\src\$$_gendir\app\view-ewniosek\ewniosek-views\ewniosek.module.ngfactory.ts' in 'C:\Users\jarkro\IdeaProjects\vlo-frontend\src\$$_gendir' 
    using description file: C:\Users\jarkro\IdeaProjects\vlo-frontend\package.json (relative path: ./src/$$_gendir) 
    Field 'browser' doesn't contain a valid alias configuration 
    after using description file: C:\Users\jarkro\IdeaProjects\vlo-frontend\package.json (relative path: ./src/$$_gendir) 
    using description file: C:\Users\jarkro\IdeaProjects\vlo-frontend\package.json (relative path: ./src/$$_gendir/app/view-ewniosek/ewniosek-views/ewniosek.module.ngfactory.ts) 
     no extension 
     Field 'browser' doesn't contain a valid alias configuration 
     C:\Users\jarkro\IdeaProjects\vlo-frontend\src\$$_gendir\app\view-ewniosek\ewniosek-views\ewniosek.module.ngfactory.ts doesn't exist 
     .ts 
     Field 'browser' doesn't contain a valid alias configuration 
     C:\Users\jarkro\IdeaProjects\vlo-frontend\src\$$_gendir\app\view-ewniosek\ewniosek-views\ewniosek.module.ngfactory.ts.ts doesn't exist 
     .js 
     Field 'browser' doesn't contain a valid alias configuration 
     C:\Users\jarkro\IdeaProjects\vlo-frontend\src\$$_gendir\app\view-ewniosek\ewniosek-views\ewniosek.module.ngfactory.ts.js doesn't exist 
     as directory 
     C:\Users\jarkro\IdeaProjects\vlo-frontend\src\$$_gendir\app\view-ewniosek\ewniosek-views\ewniosek.module.ngfactory.ts doesn't exist 
[C:\Users\jarkro\IdeaProjects\vlo-frontend\src\$$_gendir\app\view-ewniosek\ewniosek-views\ewniosek.module.ngfactory.ts] 
[C:\Users\jarkro\IdeaProjects\vlo-frontend\src\$$_gendir\app\view-ewniosek\ewniosek-views\ewniosek.module.ngfactory.ts.ts] 
[C:\Users\jarkro\IdeaProjects\vlo-frontend\src\$$_gendir\app\view-ewniosek\ewniosek-views\ewniosek.module.ngfactory.ts.js] 
[C:\Users\jarkro\IdeaProjects\vlo-frontend\src\$$_gendir\app\view-ewniosek\ewniosek-views\ewniosek.module.ngfactory.ts] 
@ ./src/$$_gendir lazy 
@ ./node_modules/@angular/core/@angular/core.es5.js 
@ ./src/main.ts 
@ multi ./src/main.ts 

私は[email protected]をインストールしようとしていたが、それはまだ動作しません:私は私のアプリを構築しようとすると、しかし、私はエラーを得ました。私のアプリで使用されるライブラリのバージョン以下

/

Angular CLI: 1.6.0 
Node: 8.9.3 
OS: win32 x64 
Angular: 4.4.1 
... animations, common, compiler, core, forms, http 
... platform-browser, platform-browser-dynamic, router 

@angular/cli: 1.6.0 
@angular/compiler-cli: 4.4.5 
@angular/tsc-wrapped: 4.4.5 
@angular-devkit/build-optimizer: 0.0.35 
@angular-devkit/core: 0.0.22 
@angular-devkit/schematics: 0.0.41 
@ngtools/json-schema: 1.1.0 
@ngtools/webpack: 1.9.0 
@schematics/angular: 0.1.10 
@schematics/schematics: 0.0.10 
typescript: 2.5.3 
webpack: 3.10.0 

誰もが同様のエラーを持っていたし、私を助けることができますか?

+0

「フィールド 'ブラウザ'に有効なエイリアス設定が含まれていません」というエラーメッセージを確認しましたか? –

+0

これはあなたの問題を解決します、[ここにリンクの説明を入力してください](https://stackoverflow.com/questions/43037590/field-browser-doesnt-contain-a-valid-alias-configuration) –

答えて

0

これは、参照しているパスが誤っている可能性があります。インポートするモジュールのパスをもう一度確認してください。