Hi! Copying the content of a question I asked on Stack Overflow.
I'm switching from ts-loader to swc-loader following this bloq. However, after migrating, it fails to show me the most basic Typescript errors in the console. For example, I have the following line that Typescript in the IDE manages to detect:
But the result returned by SWC shows it's all right (which is not!):
I'd like to configure SWC to show the errors in the console. If I switch back to ts-loader It shows properly the errors and the line in which they occurred:
Hi! Copying the content of a question I asked on Stack Overflow.
I'm switching from
ts-loader
toswc-loader
following this bloq. However, after migrating, it fails to show me the most basic Typescript errors in the console. For example, I have the following line that Typescript in the IDE manages to detect:But the result returned by SWC shows it's all right (which is not!):
I'd like to configure SWC to show the errors in the console. If I switch back to
ts-loader
It shows properly the errors and the line in which they occurred:My
webpack.config.js
content:Is there any way to achieve this? Thanks in advance