Угловой 8 с плющом не может построить - PullRequest
1 голос
/ 23 октября 2019

Я перенес свой пакет в angular 8 и хочу использовать ivy, потому что я использую лениво загруженные модули.
Когда я запускаю ng serve, я получаю следующее сообщение об ошибке.

Понятия не имею, какчтобы отследить эту проблему. Кто-нибудь решил эту проблему или у вас была похожая проблема?

chunk {main} main.js, main.js.map (main) 2.09 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 149 kB [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 6.15 kB [entry] [rendered]
chunk {scripts} scripts.js, scripts.js.map (scripts) 40.8 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 1.24 MB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 339 kB [initial] [rendered]
Date: 2019-10-23T07:19:03.231Z - Hash: 3ce8f1ee84ac94831c6b - Time: 10287ms

ERROR in The "path" argument must be of type string. Received type undefined
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
i 「wdm」: Failed to compile.

Версии:

Angular CLI: 8.3.13
Node: 10.16.3
OS: win32 x64
Angular: 8.2.11
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.803.13
@angular-devkit/build-angular     0.803.13
@angular-devkit/build-optimizer   0.803.13
@angular-devkit/build-webpack     0.803.13
@angular-devkit/core              8.3.13
@angular-devkit/schematics        8.3.13
@angular/cdk                      8.2.3
@angular/cli                      8.3.13
@angular/material                 8.2.3
@ngtools/webpack                  8.3.13
@schematics/angular               8.3.13
@schematics/update                0.803.13
rxjs                              6.5.3
typescript                        3.5.3
webpack                           4.39.2

Маршруты:

export let AppRoutes: Routes = [
    {
        path: '',
        redirectTo: 'signin',
        pathMatch: 'full'
    },
    {
        path: 'adminbereich',
        loadChildren: () => import('./modules/adminsettings').then(m => m.AdminSettingsModule)
    },
    {
        path: 'signin',
        component: SignInComponent,
        resolve: {
            model: SignInResolve
        }
    },
    {
        path: 'signup',
        component: SignUpComponent,
        resolve: {
            model: SignUpResolve
        }
    },
    {
        path: 'forgot-password',
        component: ForgotPasswordComponent
    }
];

Обновление: добавлены маршруты

...