Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't compile my React app #912

Open
2 tasks done
Rahisbel opened this issue Jan 8, 2025 · 0 comments
Open
2 tasks done

I can't compile my React app #912

Rahisbel opened this issue Jan 8, 2025 · 0 comments

Comments

@Rahisbel
Copy link

Rahisbel commented Jan 8, 2025

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

Image

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant