Skip to content
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

How to silent any error from ts-loader? #1648

Open
aspirisen opened this issue Mar 27, 2024 · 2 comments
Open

How to silent any error from ts-loader? #1648

aspirisen opened this issue Mar 27, 2024 · 2 comments

Comments

@aspirisen
Copy link

Hi, how to ignore all errors from ts-loader. I am using ts-loader just as a ts transformer for https://typia.io/
I can't disable type check because type information is needed for typia.
I perform type check with ForkTsCheckerWebpackPlugin so type errors logs from the loader are not needed.
Also, nextjs just stops building on ts error at all, what is strange.

I tried silent: true and reportFiles: ['!**/*.{ts,tsx}'] and it didn't help.

Thanks.

@johnnyreilly
Copy link
Member

Does transpileOnly help?

@aspirisen
Copy link
Author

@johnnyreilly I can't disable type checker because typia needs it.

I have separate files *.typia.ts and ts-loader applied only to these files. I do not need type checking, transpilation etc. from ts-loader, only transform but with type information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants