Today, I upgraded to Angular 19, and I'm encountering an issue that I can't resolve.
"I installed version angularx-qrcode: "^19.0.0"
, and I'm getting an error message that I don't understand...
error TS2304: Cannot find name 'QRCodeModule'.
QRCodeModule,
I'll share all the relevant files with you.
@NgModule({
imports: [
QRCodeModule,
],
})
I thank you for your help and the time you dedicated to my problem.
Today, I upgraded to Angular 19, and I'm encountering an issue that I can't resolve.
"I installed version angularx-qrcode: "^19.0.0"
, and I'm getting an error message that I don't understand...
error TS2304: Cannot find name 'QRCodeModule'.
QRCodeModule,
I'll share all the relevant files with you.
@NgModule({
imports: [
QRCodeModule,
],
})
I thank you for your help and the time you dedicated to my problem.
Share Improve this question edited Mar 5 at 13:25 MarinaLaGrande asked Mar 3 at 19:22 MarinaLaGrandeMarinaLaGrande 3032 gold badges3 silver badges7 bronze badges1 Answer
Reset to default 1As per the docs/changelog, QRCodeModule
was dropped in 19.0 and replaced by the standalone QRCodeComponent
So instead of importing the module you should import
import { QRCodeComponent } from 'angularx-qrcode';
@NgModule({
imports: [
// ...
QRCodeComponent,
],
// ...
})
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745075848a4609830.html
评论列表(0条)