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
This fix adds ESModule exports of parse-srcset zjffun/parse-srcset@a5e0f86. Because prettier using require to load modules, so I also changed the require of parse-srcset in prettier zjffun@944b686.
This fix only provides an idea and can't be used as a final solution, because there may be problems in the node environment.
The text was updated successfully, but these errors were encountered:
Environments:
Steps to reproduce:
esm/standalone.mjs
;Expected behavior:
Don't throw error.
Actual behavior:
Throw
Uncaught Error: Mismatched anonymous define() module
.Reproduction: prettier-with-requirejs
I make a simple fix: fix-prettier-with-requirejs
This fix adds ESModule exports of parse-srcset zjffun/parse-srcset@a5e0f86. Because prettier using
require
to load modules, so I also changed therequire
ofparse-srcset
in prettier zjffun@944b686.This fix only provides an idea and can't be used as a final solution, because there may be problems in the node environment.
The text was updated successfully, but these errors were encountered: