Closed denizdogan closed 4 years ago
Do you still have import-sort-style-module
in your dependency list?
closing this due to lack of activity.
Sorry, I forgot to follow up! But the issue is not relevant for me anymore, thanks for taking the time!
Since I see some people gave a thumbs down to closing this bug...
I had exactly the same problem, same error. After some investigation, I discovered that, as @ggascoigne suggested, I had accidentally removed import-sort-style-module
from my devDependencies
. Reinstalling it fixed the problem.
I recently started getting this whenever I try to use Prettier on my code. I'm not sure what I've changed that causes it to happen.
The file I'm trying to format looks like this:
(I removed all other code because it's not open source, Prettier should be able to format it either way, right? I can't share the full code, unfortunately.)
My package.json has:
When I remove
"style": "module"
, I get this error instead:The file I'm trying to format is TypeScript with JSX. I bundle my code using Parcel and minimal configuration of it that has been working up until now.
I'd appreciate any help on this one! 👍