TanStack / virtual

🤖 Headless UI for Virtualizing Large Element Lists in JS/TS, React, Solid, Vue and Svelte
https://tanstack.com/virtual
MIT License
5.55k stars 303 forks source link

Module parse failed #797

Open manuelMoraYolo opened 3 months ago

manuelMoraYolo commented 3 months ago

Describe the bug

./node_modules/@tanstack/virtual-core/dist/esm/index.js 254:22
Module parse failed: Unexpected token (254:22)
File was processed with these loaders:
 * ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
|         startIndex,
|         endIndex
>       } = this.range ?? {
|         startIndex: void 0,
|         endIndex: void 0

Hi guys, can you help me with this problem? I already use:

"@babel/plugin-proposal-nullish-coalescing-operator"
"@babel/plugin-proposal-optional-chaining"

This error happen only when i use useVirtualizer()

Your minimal, reproducible example

-

Steps to reproduce

Expected behavior

It should work without problems

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

macOS

tanstack-virtual version

^3.9.0

TypeScript version

^4.7.4

Additional context

No response

Terms & Code of Conduct