Angular build with Warning: export 'ɵa24' was not found in '@angular/material/tabs'
I recently upgraded my project to Angular 6 and Angular Material 6 (v6.0.2 to be precise) following the instructions at update.angular.io. After upgrade, on ng serve it compiles with some warnings as below.
WARNING in ./node_modules/@angular/material/esm5/material.es5.js
40:0-371 "export 'ɵa24' was not found in '@angular/material/tabs'
WARNING in ./node_modules/@angular/material/esm5/material.es5.js
40:0-371 "export 'ɵb24' was not found in '@angular/material/tabs'
WARNING in ./node_modules/@angular/material/esm5/material.es5.js
40:0-371 "export 'ɵc24' was not found in '@angular/material/tabs'
WARNING in ./node_modules/@angular/material/esm5/material.es5.js
40:0-371 "export 'ɵd24' was not found in '@angular/material/tabs'
WARNING in ./node_modules/@angular/material/esm5/material.es5.js
40:0-371 "export 'ɵe24' was not found in '@angular/material/tabs'
WARNING in ./node_modules/@angular/material/esm5/material.es5.js
40:0-371 "export 'ɵf24' was not found in '@angular/material/tabs'
WARNING in ./node_modules/@angular/material/esm5/material.es5.js
40:0-371 "export 'ɵg24' was not found in '@angular/material/tabs'
WARNING in ./node_modules/@angular/material/esm5/material.es5.js
40:0-371 "export 'ɵh24' was not found in '@angular/material/tabs'
WARNING in ./node_modules/@angular/material/esm5/material.es5.js
40:0-371 "export 'ɵi24' was not found in '@angular/material/tabs'
WARNING in ./node_modules/@angular/material/esm5/material.es5.js
40:0-371 "export 'ɵj24' was not found in '@angular/material/tabs'
WARNING in ./node_modules/@angular/material/esm5/material.es5.js
40:0-371 "export 'ɵk24' was not found in '@angular/material/tabs'
I am using only SnackBar and Dialog components. Any feedback on this are much appreciated.
I have the same error, you find any solution ??
I've the same problem. But it appears to be working even with the warning
I just upgraded angular and material to latest and it went away
I've updated to version 6.1.0 and I no longer have the warnings, so whatever it was it seems to be fixed
Yes the warnings disappeared after updating to 6.1.0
I have updated material to v6.2.0 but still warnings shown on production build.any help?
Once all my project dependencies been updated to RxJS 6, I removed rxjs- compat and after that all warnings disappeared. Also on production build i was facing error "TypeError: t is not a function" that also gone after it.
I'm on 6.2.1 and the warnings show
Same warnings shown with the latest version of @ngtools/webpack and @angular/material.
@mxchange , @ardatan Did you try updating the dependencies like @ashishkrjain did?
@gopumon All dependencies including rxjs are up-to-date.
@ardatan I am not getting the warnings with angular 6.0.4 and angular material 6.2.1.
You may try the below :
Remove deprecated RxJS 6 features using rxjs-tslint auto update rules.
For most applications this will mean running the following two commands:
yarn global add rxjs-tslint
rxjs-5-to-6-migrate -p src/tsconfig.app.json
(you may use npm with -g flag for installing rxjs-tslint)
Once you and all of your dependencies have updated to RxJS 6, remove rxjs-compat.
I think you guys are actually affected by what is described here: #11664 Long story short, delete node_modules and install again, should fix the problem.
@pfeigl reinstalling node_modules worked for me, thank you!
@gopumon removing node_modules & reinstalling fixed it
doesn't work for me. I found that reinstalling angular/material@=6.2.0 removes the problem. If you install the latest 6.2.1, the package still calls itself 6.2.0, but give the above list of warning when compiling. Seems it doesn't matter whether you use cdk@620 or 621.
As can be seen from here. the package actually does not call itself 6.2.0 when you have 6.2.1 installed: https://unpkg.com/@angular/[email protected]/package.json
I'm still unsure, why so many problems will not get the updates correctly when upgrading the package. Could people with the problem shortly notify here, whether they are using npm or yarn?
@pfeigl Yarn. Perhaps my installation of 621 was faulty. I'll try doing it again.
@pfeigl It is very repeatable on two machines on different internet connections. If I yarn add [email protected] or @latest, the project will not serve, and the module has a package.json saying 6.2.0. If I yarn add material@=6.2.0 then it compiles without problem.
I think I solved my situation, although I don't know why. If I install 621 normally, the module installed calls itself 620. However, as indicated above, the 621 in the registry correctly calls itself 621. More so, the 621 in my Yarn cache also calls itself 621. I have no idea where my bad 621 is installed from. My resolution is to clear the yarn cache, remove the module and install it again. Seems this works (and any proper subset of these 3 actions does not -- you need to do all three).