Open zlm11 opened 2 weeks ago
Hello @zlm11, sorry we can't investigate the problem further without reproduction demo, please provide a repro demo by forking rspack-repro, or provide a minimal GitHub repository by yourself. Issues labeled by need reproduction
will be closed if no activities in 14 days.
System Info
System: OS: macOS 14.4.1 CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz Memory: 464.98 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 18.20.4 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 10.7.0 - /usr/local/bin/npm pnpm: 8.15.4 - /usr/local/bin/pnpm Browsers: Chrome: 129.0.6668.90 Edge: 129.0.2792.79 Safari: 17.4.1 npmPackages: @rspack/cli: ^1.0.5 => 1.0.5 @rspack/core: ^1.0.5 => 1.0.5
Details
I try to migrate from webpack to rspack, when I start dev server got this error,however I already config '.tsx' in resolve.extensions. **Found module './src/index.tsx'. However, it's not possible to request this module without the extension if its extension was not listed in the
resolve.extensions
. Here're some possible solutions:".tsx"
toresolve.extensions
in your rspack configurationReproduce link
No response
Reproduce Steps
I try to migrate from webpack to rspack, when i start dev server got this error:
Found module './src/index.tsx'. However, it's not possible to request this module without the extension if its extension was not listed in the
resolve.extensions`. Here're some possible solutions:".tsx"
toresolve.extensions
in your rspack configurationuse './src/index.tsx' instead of './src'` but I already config '.tsx' in resolve.extensions,I dont know why this occur,how I can fix this? This is my config: