You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Cannot import moment/min/moment-with-locales because of Typescript error.
To Reproduce
Open any project with latest Typescript
Type import moment from "moment/min/moment-with-locales";
Run tsc
See the error TS2307 Cannot find module 'moment/min/moment-with-locales'
Expected behavior
Import without error with full types support.
I use require and it will no longer report an error and work very well, but I don’t understand why this phenomenon exists. can someone tell this problem? Thanks in advance!
Describe the bug
Cannot import
moment/min/moment-with-locales
because of Typescript error.To Reproduce
Open any project with latest Typescript
Type
import moment from "moment/min/moment-with-locales";
Run
tsc
See the error
TS2307 Cannot find module 'moment/min/moment-with-locales'
Expected behavior
Import without error with full types support.
Screenshots
Without any types definitions:
Version:
2.25.0
to2.26.0
The last working version for this bug is
2.24.0
#4946
The text was updated successfully, but these errors were encountered: