Open darrenparkinson opened 9 months ago
same problem
It seems to be related to some changes introduced in https://github.com/angular/components/pull/28356, you can try to set "@angular/cdk": "<17.1.0"
until a fix is provided.
Same issue
Same issue
Same issue
I am facing the exact same issue
Same problem here..
It seems to be related to some changes introduced in angular/components#28356, you can try to set
"@angular/cdk": "<17.1.0"
until a fix is provided.
Remember that you also should override the dependency of @nebular/theme, otherwise Nebular will complain:
"overrides": {
"@nebular/theme": {
"@angular/cdk": "<17.1.0"
}
}
Same problem here
Any update on this? Or perhaps any better alternative than setting @angular/cdk <17.1.0?
Same problem
Same issue :(
any news ?
Any updates on this?
We still get the error NullInjectorError: NullInjectorError: No provider for InjectionToken CDK_TABLE!
after upgrading Nebular to v14, is there already a fix available (otherwise then use the "@angular/cdk": "<17.1.0"
fix)?
Issue still exists with latest Angular & Nebular version:
core.mjs:7372 ERROR
NullInjectorError: NullInjectorError: No provider for InjectionToken CDK_TABLE!
at NullInjector.get (core.mjs:1659:27)
at R3Injector.get (core.mjs:3105:33)
at R3Injector.get (core.mjs:3105:33)
at R3Injector.get (core.mjs:3105:33)
at R3Injector.get (core.mjs:3105:33)
at R3Injector.get (core.mjs:3105:33)
at ChainedInjector.get (core.mjs:5447:36)
at lookupTokenUsingModuleInjector (core.mjs:5800:39)
at getOrCreateInjectable (core.mjs:5848:12)
at ɵɵdirectiveInject (core.mjs:11915:19)
Show 22 more frames
Steps to reproduce:
i still get the same error
Angular CLI: 17.3.8
Node: 20.16.0
Package Manager: npm 10.8.1
OS: win32 x64
Angular: 17.3.12 ... animations, common, compiler, compiler-cli, core, forms ... localize, platform-browser, platform-browser-dynamic, router
@angular-devkit/architect 0.1703.8
@angular-devkit/build-angular 17.3.8
@angular-devkit/core 17.3.8
@angular-devkit/schematics 17.3.8
@angular/cdk 17.3.10
@angular/cli 17.3.8
@angular/google-maps 17.0.1
@schematics/angular 17.3.8
rxjs 7.8.1
typescript 5.4.5
zone.js 0.14.10
ERROR NullInjectorError: R3InjectorError(_AppModule)[InjectionToken CDK_TABLE -> InjectionToken CDK_TABLE]:
NullInjectorError: No provider for InjectionToken CDK_TABLE!
at NullInjector.get (core.mjs:1654:27)
at R3Injector.get (core.mjs:3093:33)
at R3Injector.get (core.mjs:3093:33)
at ChainedInjector.get (core.mjs:15723:36)
at lookupTokenUsingModuleInjector (core.mjs:5730:39)
at getOrCreateInjectable (core.mjs:5778:12)
at ɵɵdirectiveInject (core.mjs:11050:19)
at ɵɵinject (core.mjs:1106:42)
at inject (core.mjs:1192:12)
at new _HeaderRowOutlet (table.mjs:1528:19)
and i upgrade anguale-cdk to "@angular/cdk": "^17.3.0", and get the same error
@darrenparkinson
i want to ask if you sloved it or not
It seems to be related to some changes introduced in angular/components#28356, you can try to set
"@angular/cdk": "<17.1.0"
until a fix is provided.Remember that you also should override the dependency of @nebular/theme, otherwise Nebular will complain:
"overrides": { "@nebular/theme": { "@angular/cdk": "<17.1.0" } }
Hi @jeroenpol.. Sorry for this dumb question, but.. where should I override the nebular/theme dependency? package.json doesn't support this kind of things.. Am I wrong?
It seems to be related to some changes introduced in angular/components#28356, you can try to set
"@angular/cdk": "<17.1.0"
until a fix is provided.Remember that you also should override the dependency of @nebular/theme, otherwise Nebular will complain:
"overrides": { "@nebular/theme": { "@angular/cdk": "<17.1.0" } }
Hi @jeroenpol.. Sorry for this dumb question, but.. where should I override the nebular/theme dependency? package.json doesn't support this kind of things.. Am I wrong?
Hi!
package.json
does support this. Check https://docs.npmjs.com/cli/v9/configuring-npm/package-json#overrides
It seems to be related to some changes introduced in angular/components#28356, you can try to set
"@angular/cdk": "<17.1.0"
until a fix is provided.Remember that you also should override the dependency of @nebular/theme, otherwise Nebular will complain:
"overrides": { "@nebular/theme": { "@angular/cdk": "<17.1.0" } }
Hi @jeroenpol.. Sorry for this dumb question, but.. where should I override the nebular/theme dependency? package.json doesn't support this kind of things.. Am I wrong?
Hi!
package.json
does support this. Check https://docs.npmjs.com/cli/v9/configuring-npm/package-json#overrides
Thanks @jeroenpol
Even with the override, Tree component still not working :(
We still get the error
NullInjectorError: NullInjectorError: No provider for InjectionToken CDK_TABLE!
after upgrading Nebular to v14, is there already a fix available (otherwise then use the"@angular/cdk": "<17.1.0"
fix)?
The override wont work in anycase. I dont know if its just override the cdk or if we need to do anything else.
any update on this?
Issue type
I'm submitting a ... (check one with "x")
Issue description
Current behavior:
When adding
nbTreeGrid
to my component, I get this error:ERROR NullInjectorError: R3InjectorError(Standalone[_ProfileComponent])[InjectionToken CDK_TABLE -> InjectionToken CDK_TABLE -> InjectionToken CDK_TABLE -> InjectionToken CDK_TABLE]: NullInjectorError: No provider for InjectionToken CDK_TABLE!
Expected behavior:
I expect to not receive the error when following the installation information from the documentation here: https://akveo.github.io/nebular/docs/components/tree-grid/overview#nbtreegridcomponent
Steps to reproduce:
Related code:
With the following in the component:
Other information:
npm, node, OS, Browser
Angular, Nebular