T
TanStack•4y ago
secure-lavender

tanstack match-sorter-utils. Module parse failed Unexpected token

Hello, I have installed reactQueryDevtools and now when I'm trying start storybook it says: ERR! ./node_modules/@tanstack/match-sorter-utils/build/umd/index.production.js 18:1274 ERR! Module parse failed: Unexpected token (18:1274) ERR! You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. Does anyone had this issue? "@tanstack/react-query": "^4.13.0" "@tanstack/react-query-devtools": "^4.13.0"
No description
6 Replies
protestant-coral
protestant-coral•4y ago
it was a bundler issue. make sure to use the latest react-query version
secure-lavender
secure-lavenderOP•4y ago
I have updated to the latest version of react-query and still have same issue 😦
protestant-coral
protestant-coral•4y ago
it depends on the bundler you're using. why is the umd file being picked up is the question
secure-lavender
secure-lavenderOP•4y ago
I'm using nextjs v12.2.3 and it uses webpack..
protestant-coral
protestant-coral•4y ago
doesn't look right. we also use next 12.2 and it works fine, we also have a next example that works fine 🤔
secure-lavender
secure-lavenderOP•4y ago
so yarn dev command for example works fine, and everything else works fine. Storybook worked till the moment I installed ReactQueryDevtools.. After install it just give me this error (which is on the screenshot)

Did you find this page helpful?