Components: Error export 'MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS'

Created on 17 Jul 2018  路  3Comments  路  Source: angular/components

Bug:

What is the expected behavior?

Correct build release

What is the current behavior?

Date: 2018-07-17T07:40:04.931Z
Hash: d4c41bfeeecb56826ea9
Time: 33849ms
chunk {scripts} scripts.js (scripts) 194 kB  [rendered]
chunk {0} runtime.js (runtime) 1.05 kB [entry] [rendered]
chunk {1} styles.css (styles) 282 kB [initial] [rendered]
chunk {2} polyfills.js (polyfills) 59.6 kB [initial] [rendered]
chunk {3} main.js (main) 1.52 MB [initial] [rendered]

WARNING in ./src/app/app.component.ngfactory.js
1017:214-250 "export 'MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS' (imported as 'i20') was not found in '@angular/material/slide-toggle'

WARNING in ./src/app/app.component.ngfactory.js
1025:214-250 "export 'MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS' (imported as 'i20') was not found in '@angular/material/slide-toggle'

WARNING in ./src/app/app.component.ngfactory.js
1041:214-250 "export 'MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS' (imported as 'i20') was not found in '@angular/material/slide-toggle'

WARNING in ./src/app/component/scheda-immobile/scheda-immobile.component.ngfactory.js
105:213-249 "export 'MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS' (imported as 'i19') was not found in '@angular/material/slide-toggle'

WARNING in ./src/app/app.component.ngfactory.js
271:212-248 "export 'MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS' (imported as 'i20') was not found in '@angular/material/slide-toggle'

WARNING in ./src/app/app.component.ngfactory.js
308:212-248 "export 'MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS' (imported as 'i20') was not found in '@angular/material/slide-toggle'

WARNING in ./src/app/app.component.ngfactory.js
336:213-249 "export 'MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS' (imported as 'i20') was not found in '@angular/material/slide-toggle'

WARNING in ./src/app/app.component.ngfactory.js
395:213-249 "export 'MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS' (imported as 'i20') was not found in '@angular/material/slide-toggle'

WARNING in ./node_modules/@angular/material/slide-toggle/typings/index.ngfactory.js
63:612-647 "export 'MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS' (imported as 'i1') was not found in '@angular/material/slide-toggle'

What are the steps to reproduce?

ng build --prod

What is the use-case or motivation for changing an existing behavior?

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular CLI: 6.0.8
Node: 10.6.0
OS: win32 x64
Angular: 6.0.9
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router, service-worker

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.6.8
@angular-devkit/build-angular     0.6.8
@angular-devkit/build-optimizer   0.6.8
@angular-devkit/core              0.6.8
@angular-devkit/schematics        0.7.0-rc.0
@angular/cdk                      6.4.0
@angular/cli                      6.0.8
@angular/flex-layout              6.0.0-beta.16
@angular/material                 6.4.0
@angular/pwa                      0.6.8
@ngtools/webpack                  6.0.8
@schematics/angular               0.6.8
@schematics/update                0.6.8
rxjs                              6.2.2
typescript                        2.7.2
webpack                           4.8.3

Is there anything else we should know?

Do this just last version on compile give me also this error in chrome:

ERROR TypeError: Cannot read property 'ngInjectableDef' of undefined
    at wi (main.js:1)
    at t.get (main.js:1)
    at po (main.js:1)
    at uo (main.js:1)
    at ao (main.js:1)
    at Bo (main.js:1)
    at Yo (main.js:1)
    at Xo (main.js:1)
    at Bo (main.js:1)
    at Do (main.js:1)

Most helpful comment

I solve to remove node_modules folder and reinstall all with

npm install

All 3 comments

I solve to remove node_modules folder and reinstall all with

npm install

Great, Thanks @Toso82

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vitaly-t picture vitaly-t  路  3Comments

constantinlucian picture constantinlucian  路  3Comments

kara picture kara  路  3Comments

Hiblton picture Hiblton  路  3Comments

LoganDupont picture LoganDupont  路  3Comments