Closed andrelutza closed 1 year ago
"This application depends upon a library published using Angular version 14.0.6, which requires Angular version 14.0.0 or newer to work correctly. Consider upgrading your application to use a more recent version of Angular."
It would appear that your app's angular version is not compatible.
Just use the 1.0.0 version...
I get a similar error on version 14.1.1. Below is the verbose log of ng build. I did try to use v1.0.0 but there is a dependency error.
`Generating browser application bundles (phase: setup)... [webpack.cache.PackFileCacheStrategy] No pack exists at /Users/michaelrivera/Projects/public-api/developer-portal/.angular/cache/14.2.11/angular-webpack/b9bf6ec76a68bc0d6d8cd3ae05738b5046ddfdab.pack: Error: ENOENT: no such file or directory, stat '/Users/michaelrivera/Projects/public-api/developer-portal/.angular/cache/14.2.11/angular-webpack/b9bf6ec76a68bc0d6d8cd3ae05738b5046ddfdab/index.pack'
After reviewing the following stack overflow, https://stackoverflow.com/questions/74616687/error-ts2707-generic-type-%C9%B5%C9%B5directivedeclaration-requires-between-6-and-8-type I removed the last never in the type declaration in node_modules/angular-material-rail-drawer/lib/drawer-rail.directive.d.ts:27:18
I changed this: static ɵdir: i0.ɵɵDirectiveDeclaration<MatDrawerRailDirective, "mat-sidenav[mode=\"rail\"], mat-drawer[mode=\"rail\"], mat-sidenav[rail-mode], mat-drawer[rail-mode]", never, { "openAnimation": "openAnimation"; "closeAnimation": "closeAnimation"; "closeWidth": "closeWidth"; "expandedWidth": "expandedWidth"; }, {}, never, never, false, never>;
To this: static ɵdir: i0.ɵɵDirectiveDeclaration<MatDrawerRailDirective, "mat-sidenav[mode=\"rail\"], mat-drawer[mode=\"rail\"], mat-sidenav[rail-mode], mat-drawer[rail-mode]", never, { "openAnimation": "openAnimation"; "closeAnimation": "closeAnimation"; "closeWidth": "closeWidth"; "expandedWidth": "expandedWidth"; }, {}, never, never, false>;
This allows "ng build" to complete
If this is still an issue let me know. I'm only going to support up to last release of 16 Issue closed please read https://github.com/Jordan-Hall/angular-material-rail-drawer-plugin/issues/56
Happy to reopen this issue if it exists. Seems like a bulid issue
I am trying to integrate the rail into my project, and this is the error I am getting:
./node_modules/angular-material-rail-drawer/fesm2015/angular-material-rail-drawer.mjs - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js): TypeError: Cannot create property 'message' on string 'C:\baroloop\github\RPM-Frontend\node_modules\angular-material-rail-drawer\fesm2015\angular-material-rail-drawer.mjs: This application depends upon a library published using Angular version 14.0.6, which requires Angular version 14.0.0 or newer to work correctly. Consider upgrading your application to use a more recent version of Angular. at C:\baroloop\github\RPM-Frontend\node_modules\gensync\index.js:113:33 at step (C:\baroloop\github\RPM-Frontend\node_modules\gensync\index.js:287:14) at C:\baroloop\github\RPM-Frontend\node_modules\gensync\index.js:273:13 at async.call.result.err.err (C:\baroloop\github\RPM-Frontend\node_modules\gensync\index.js:223:11) Error: node_modules/angular-material-rail-drawer/lib/drawer-rail.directive.d.ts:27:18 - error TS2314: Generic type 'ɵɵDirectiveDeclaration' requires 6 type argument(s).
27 static ɵdir: i0.ɵɵDirectiveDeclaration<MatDrawerRailDirective, "mat-sidenav[mode=\"rail\"], mat-drawer[mode=\"rail\"], mat-sidenav[rail-mode], mat-drawer[rail-mode]", never, { "openAnimation": "openAnimation"; "closeAnimation": "closeAnimation"; "closeWidth": "closeWidth"; "expandedWidth": "expandedWidth"; }, {}, never, never, false>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Any ideas how to fix this? Thanks in advance!