Closed prachigupta2607 closed 3 years ago
Same issue
Versions
On compile throws error: ERROR in Could not resolve moment/ts3.1-typings/moment from .../node_modules/ngx-daterangepicker-material/ngx-daterangepicker-material.d.ts
@muhitoLV @prachigupta2607 try to downgrade your moment, use 2.27.0 instead.
@muhitoLV @prachigupta2607 try to downgrade your moment, use 2.27.0 instead. It didn't work. Still getting the same issue.
@muhitoLV @prachigupta2607 try to downgrade your moment, use 2.27.0 instead. It didn't work. Still getting the same issue.
Downgrading moment to 2.24.0 worked for me.
I have tried with this config
and works like a charm.
Getting ERROR in Could not resolve moment/ts3.1-typings/moment from ..../angular/node_modules/ngx-daterangepicker-material/ngx-daterangepicker-material.d.ts when angular code re-compiles for changes.
After that i have only installed moment with below command:
and its worked for me.
My solution was comment out those lines in:
// "angularCompilerOptions": {
// "enableIvy": false
// }
and add this line into compilerOptions:
"allowSyntheticDefaultImports": true,
I am getting the same error after Angular 9 upgrade. I'm using the below components: Angular: 9.1.13 Moment: 2.29.1 ngx-daterange-picker: 2.4.1 tslib: 1.10.0
Also I have the enableIvy: false as its needed for my upgrade
I tried most of the above solutions:
Any suggestion would be helpful.
Getting ERROR in Could not resolve moment/ts3.1-typings/moment I tried most of the above solutions now it's working when id add "allowSyntheticDefaultImports": true property in tsconfig.app.json file and remove "angularCompilerOptions": { "enableIvy": false}.
Hello, moment is replaced by dayjs in this component. Use the latest version.
Thanks
Versions
*Describe the bug: Getting ERROR in Could not resolve moment/ts3.1-typings/moment from ..../angular/node_modules/ngx-daterangepicker-material/ngx-daterangepicker-material.d.ts when angular code re-compiles for changes.
Please help me out.