components icon indicating copy to clipboard operation
components copied to clipboard

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

Open gopumon opened this issue 8 years ago • 34 comments

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.

gopumon avatar May 19 '18 23:05 gopumon

I have the same error, you find any solution ??

Georgehatouts avatar May 21 '18 07:05 Georgehatouts

I've the same problem. But it appears to be working even with the warning

CaselIT avatar May 21 '18 07:05 CaselIT

I just upgraded angular and material to latest and it went away

crh225 avatar May 24 '18 00:05 crh225

I've updated to version 6.1.0 and I no longer have the warnings, so whatever it was it seems to be fixed

CaselIT avatar May 24 '18 07:05 CaselIT

Yes the warnings disappeared after updating to 6.1.0

gopumon avatar May 24 '18 13:05 gopumon

I have updated material to v6.2.0 but still warnings shown on production build.any help?

ashishjain16 avatar Jun 01 '18 15:06 ashishjain16

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.

ashishjain16 avatar Jun 01 '18 20:06 ashishjain16

I'm on 6.2.1 and the warnings show

mxchange avatar Jun 06 '18 12:06 mxchange

Same warnings shown with the latest version of @ngtools/webpack and @angular/material.

ardatan avatar Jun 06 '18 19:06 ardatan

@mxchange , @ardatan Did you try updating the dependencies like @ashishkrjain did?

gopumon avatar Jun 06 '18 19:06 gopumon

@gopumon All dependencies including rxjs are up-to-date.

ardatan avatar Jun 06 '18 19:06 ardatan

@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.

gopumon avatar Jun 06 '18 20:06 gopumon

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 avatar Jun 06 '18 22:06 pfeigl

@pfeigl reinstalling node_modules worked for me, thank you!

ardatan avatar Jun 06 '18 23:06 ardatan

@gopumon removing node_modules & reinstalling fixed it

mxchange avatar Jun 07 '18 07:06 mxchange

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.

alexfung888 avatar Jun 08 '18 01:06 alexfung888

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 avatar Jun 08 '18 09:06 pfeigl

@pfeigl Yarn. Perhaps my installation of 621 was faulty. I'll try doing it again.

alexfung888 avatar Jun 08 '18 09:06 alexfung888

@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.

alexfung888 avatar Jun 08 '18 11:06 alexfung888

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).

alexfung888 avatar Jun 11 '18 15:06 alexfung888