Could not resolve moment/ts3.1-typings/moment
See original GitHub issueVersions
- Angular version: 10.0.11
- component version: 4.0.1
Describe the bug Every time I make a small change in the code and the code recompiles I get this error
Could not resolve moment/ts3.1-typings/moment from C:/Users/***/Documents/***/***/node_modules/ngx-daterangepicker-material/ngx-daterangepicker-material.d.ts
To Reproduce Steps to reproduce the behavior:
- Download package
- Use component in code
- Make any modification to the code while server is running
- See error
Expected behavior No error
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:7
Top Results From Across the Web
1 Answer - 1 - Stack Overflow
javascript - ERROR in Could not resolve moment/ts3. 1-typings/moment - Stack Overflow. Stack Overflow for Teams – Start collaborating and sharing ...
Read more >Issues - GitHub
Getting ERROR in Could not resolve moment/ts3.1-typings/moment from ..../angular/node_modules/ngx-daterangepicker-material/ngx-daterangepicker-material.d.ts ...
Read more >fetrarij/ngx-daterangepicker-material - Issuehunt
Could not resolve moment /ts3.1-typings/moment #331 ... To Reproduce Steps to reproduce the behavior: ... Edit: Went all the way back to v2.2.0...
Read more >Module not found: Can't resolve 'moment' error | bobbyhadz
Conclusion # To solve the error "Module not found: Error: Can't resolve 'moment'", make sure to install the moment package by opening your...
Read more >moment-timezone - npm
Parse and display moments in any timezone.. Latest version: 0.5.40, last published: 14 days ago. Start using moment-timezone in your project ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@gopal-augment That’s right. Just remove your node_modules directory and run
npm install
oryarn install
and you should be good to go.Looks like downgrading moment to v2.24.0 solved the issue, at least for me.