-
Notifications
You must be signed in to change notification settings - Fork 469
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
[Bug]: ts-loader runs into an error with rspack #6306
Comments
|
I would like to give it a try. |
@coder-xiaotian Adding custom fields to |
Ok, Get it. |
Any follow-ups here? Would love to see typescript errors integrated with hot refresh |
I have committed my code to fix ts-loader error. |
System Info
System:
OS: Linux 6.2 Ubuntu 20.04.6 LTS (Focal Fossa)
CPU: (32) x64 AMD EPYC 7763 64-Core Processor
Memory: 113.67 GB / 125.78 GB
Container: Yes
Shell: 5.0.17 - /bin/bash
Binaries:
Node: 20.11.0 - /usr/local/share/nvm/versions/node/v20.11.0/bin/node
Yarn: 1.23.19 - /usr/bin/yarn
npm: 10.2.4 - /usr/local/share/nvm/versions/node/v20.11.0/bin/npm
Watchman: 20240317.093234.0 - /usr/local/bin/watchman
Browsers:
Chrome: 124.0.6367.60
npmPackages:
@rspack/cli: 0.6.2 => 0.6.2
@rspack/core: 0.6.2 => 0.6.2
Details
So running into the below error when using ts-loader for some files. (for other files I am using builtin:swc-loader) .
And this error is coming from the following piece of code in ts-loader:
I do not run into this error with webpack.
Currently I am getting around this issue with setting happyPackMode as true for rspack.
Reproduce link
No response
Reproduce Steps
try using ts-loader for some .tsx. file -> should repro this error.
The text was updated successfully, but these errors were encountered: