useQuery export error #845
Answered
by
jackmellis
sanpanthera
asked this question in
General
-
I am getting below error while building the app. Please guide me to resolve this issue. |
Beta Was this translation helpful? Give feedback.
Answered by
jackmellis
Aug 14, 2020
Replies: 2 comments
-
I found the root cause.. In the react-query's package.json module key is pointing to mjs file. If I point to any other .js file within dist folder it works... Can someone help on this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Does your bundler config know how to read |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sanpanthera
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Does your bundler config know how to read
.mjs
files? For example in webpack you have you to specifyextensions: [ '.js', '.jsx', '.mjs' ]
etc.