Replies: 1 comment
-
Encountered the same problem when I relied on the locale functionality of
❌ in Remix v2 Hope to get some feasible suggestions |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Having just upgraded my Remix project to v2 I have set
serverModuleFormat
to "esm" so I use ES modules.I have an import somewhere like:
When I build and run my project I get errors like this:
I thought this might be a problem with
date-fns
, but it looks likedate-fns
should support ES Module just fine and has a package.json atnode_modules/date-fns/isValid
that looks like this:If I import
isValid
from the parent module like so it works OKAny ideas why this is?
Beta Was this translation helpful? Give feedback.
All reactions