Angular Material Timepicker Input for Template and Reactive forms
MIT License
57
stars
18
forks
source link
Module not found: Error: Package path ./lib/clock/clock.component is not exported from package \node_modules\mat- timepicker (see exports field in node_modules\mat-timepicker\package.json) #100
We were using the ClockComponent on the 5.1.5 version, and was imported via the following:
import { ɵa as ClockComponent } from 'mat-timepicker';
Now when updating to Angular 14, and the 5.1.7 version we corrected the import to:
import { ClockComponent } from "mat-timepicker/lib/clock/clock.component";
However, this gives the following error:
Module not found: Error: Package path ./lib/clock/clock.component is not exported from package \node_modules\mat- timepicker (see exports field in node_modules\mat-timepicker\package.json)
And we can't seem to fix it at all.
Is the export wrong maybe? Not sure of what we can be doing wrong
Thanks
We were using the ClockComponent on the 5.1.5 version, and was imported via the following: import { ɵa as ClockComponent } from 'mat-timepicker'; Now when updating to Angular 14, and the 5.1.7 version we corrected the import to: import { ClockComponent } from "mat-timepicker/lib/clock/clock.component"; However, this gives the following error: Module not found: Error: Package path ./lib/clock/clock.component is not exported from package \node_modules\mat- timepicker (see exports field in node_modules\mat-timepicker\package.json)
And we can't seem to fix it at all. Is the export wrong maybe? Not sure of what we can be doing wrong Thanks