Components: Angular build with Warning: export '傻a24' was not found in '@angular/material/tabs'

Created on 20 May 2018  路  34Comments  路  Source: angular/components

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.

Most helpful comment

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.

All 34 comments

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/material@6.2.1/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).

same issue here too, reinstalling node_modules worked for me too, thank you @pfeigl!

+1 for the rm -rf of node-modules

yet the problem is coming back time after time. Every single time I upgrade @angular/material, on each of my machine using yarn upgrade, I ran into the same problem again. Then I need to yarn remove and yarn add material, after which the warnings disappeared.

it looks like a problem with the yarn ecosystem.

@gopumon maybe, but it only happens with material, not even cdk.

rm -rf node-modules ftw!

@CardzMania that is an overkill. As I said above, you only need to yarn remove @angular/material and add it back. No need to touch other modules.

However, you need to do this every single time you upgrades the material module.

Seems solved with latest devkit:
"@angular-devkit/build-angular": "0.7.0-rc.0",

Thank you @alexfung888, you solved my problem!

but the problem return when I upgrade to [email protected]

Updating @angular-devkit/build-angular to 0.7.0-rc.2 worked for me today, don't know if this will be sustainable but that solved the issue at least for a time...

This reoccured for me when using yarn on 7.2.2 and 7.3.0.
EDIT and was fixed by reinstalling all node modules

Occurred on Angular: 7.2.13 and Angular material: 8.0.0. Using NPM. Removing and reinstalling node_modules did not fix the issue. The issue does not arise until importing from angular material in the app module.
EDIT
Issue was because there was a difference in top (?) version number, and then material would look for stuff in the version 8 not 7 of other angular packages. Able to resolve by completely unistalling, and using "npm install @angular/material@^7.0.0 @angular/cdk@^7.0.0".

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

constantinlucian picture constantinlucian  路  3Comments

crutchcorn picture crutchcorn  路  3Comments

3mp3ri0r picture 3mp3ri0r  路  3Comments

michaelb-01 picture michaelb-01  路  3Comments

xtianus79 picture xtianus79  路  3Comments