T
TanStack4y ago
rare-sapphire

Module parsed failed after installing debugger

Hey guys, I just installed react-query and it works, but after installing the debugger with yarn add @tanstack/react-query-devtools and import {ReactQueryDevtools} from "@tanstack/react-query-devtools"; my bundle fails to compile.
./node_modules/@tanstack/match-sorter-utils/build/umd/index.production.js 504:47
Module parse failed: Unexpected token (504:47)
File was processed with these loaders:
* ./node_modules/react-scripts/node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
| return e.rank === n.rank ? 0 : e.rank > n.rank ? -1 : 1;
| }, e.rankItem = function (e, n, t) {
> if ((t = t || {}).threshold = t.threshold ?? o.MATCHES, !t.accessors) {
| const r = s(e, n, t);
| return {
./node_modules/@tanstack/match-sorter-utils/build/umd/index.production.js 504:47
Module parse failed: Unexpected token (504:47)
File was processed with these loaders:
* ./node_modules/react-scripts/node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
| return e.rank === n.rank ? 0 : e.rank > n.rank ? -1 : 1;
| }, e.rankItem = function (e, n, t) {
> if ((t = t || {}).threshold = t.threshold ?? o.MATCHES, !t.accessors) {
| const r = s(e, n, t);
| return {
Maybe you can give me a hint how to solve this issue? Thank you!
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?