Turbopack incorrectly resolves imported functions when wrapping into private method calls #75938
Labels
linear: turbopack
Confirmed issue that is tracked by the Turbopack team.
Turbopack
Related to Turbopack with Next.js.
Link to the code that reproduces this issue
https://github.com/kossnocorp/turbopack-private-bug
To Reproduce
Current vs. Expected behavior
It should correctly resolve
fooBar
function and not to throw an error:Provide environment information
Operating System: Platform: linux Arch: x64 Version: #1 SMP Tue Nov 5 00:21:55 UTC 2024 Available memory (MB): 30862 Available CPU cores: 32 Binaries: Node: 22.13.1 npm: 10.9.2 Yarn: N/A pnpm: 9.15.4 Relevant Packages: next: 15.2.0-canary.53 // Latest available version is detected (15.2.0-canary.53). eslint-config-next: N/A react: 19.0.0 react-dom: 19.0.0 typescript: 5.7.3 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Turbopack
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
No response
The text was updated successfully, but these errors were encountered: