question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not resolve moment/ts3.1-typings/moment

See original GitHub issue

Versions

  • 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:

  1. Download package
  2. Use component in code
  3. Make any modification to the code while server is running
  4. See error

Expected behavior No error

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:7

github_iconTop GitHub Comments

1reaction
Chmielinskicommented, Sep 15, 2020

@gopal-augment That’s right. Just remove your node_modules directory and run npm install or yarn install and you should be good to go.

1reaction
Chmielinskicommented, Sep 15, 2020

Looks like downgrading moment to v2.24.0 solved the issue, at least for me.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found