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
When compiling my application in React the following error appears
[1] Starting the development server...
[1]
[1] Failed to compile.
[1]
[1] ./node_modules/@tanstack/virtual-core/dist/esm/index.js 361:88
[1] Module parse failed: Unexpected token (361:88)
[1] File was processed with these loaders:
[1] * ./node_modules/babel-loader/lib/index.js
[1] You may need an additional loader to handle the result of these loaders.
[1] | this.targetWindow = this.scrollElement.ownerDocument.defaultView;
[1] | } else {
[1] > this.targetWindow = ((_a = this.scrollElement) == null ? void 0 : _a.window) ?? null;
[1] | }
[1] |
I am using the library @tanstack/react-query version ^4.0.8
Your minimal, reproducible example
Typescript
Steps to reproduce
npm run start
npm run start = "concurrently "npm run start:css" "env-cmd -f .env.test.local react-scripts start""
Expected behavior
Run my application locally
How often does this bug happen?
Every time
Screenshots or Videos
Platform
Linux
tanstack-virtual version
tanstack/react-query version ^4.0.8
TypeScript version
v4.7.3
Additional context
No response
Terms & Code of Conduct
I agree to follow this project's Code of Conduct
I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
The text was updated successfully, but these errors were encountered:
Describe the bug
When compiling my application in React the following error appears
[1] Starting the development server...
[1]
[1] Failed to compile.
[1]
[1] ./node_modules/@tanstack/virtual-core/dist/esm/index.js 361:88
[1] Module parse failed: Unexpected token (361:88)
[1] File was processed with these loaders:
[1] * ./node_modules/babel-loader/lib/index.js
[1] You may need an additional loader to handle the result of these loaders.
[1] | this.targetWindow = this.scrollElement.ownerDocument.defaultView;
[1] | } else {
[1] > this.targetWindow = ((_a = this.scrollElement) == null ? void 0 : _a.window) ?? null;
[1] | }
[1] |
I am using the library @tanstack/react-query version ^4.0.8
Your minimal, reproducible example
Typescript
Steps to reproduce
npm run start
npm run start = "concurrently "npm run start:css" "env-cmd -f .env.test.local react-scripts start""
Expected behavior
Run my application locally
How often does this bug happen?
Every time
Screenshots or Videos
Platform
Linux
tanstack-virtual version
tanstack/react-query version ^4.0.8
TypeScript version
v4.7.3
Additional context
No response
Terms & Code of Conduct
The text was updated successfully, but these errors were encountered: