-
Notifications
You must be signed in to change notification settings - Fork 6
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
Babel-loader and typescript #34
Comments
Hey @yovanoc. What does not work / what error do you see? 😉 |
I got this warning:
And when call a method, the main thread timeout in 10 sec. I think it is related to single js final build, or idk, babel-preset-typescript maybe, because i can't change like ts-loader the compiler options |
Really hard to tell from here. Can you share the code where you import |
Yep, code looks alright. I think the Babel config is the trouble maker here:
Babel will transpile the modules away and the threads-plugin can then no longer identify the import statement that doesn't exist anymore. |
Any reason not to do |
Ahh, sorry. Nevermind. I confused the semantics of the setting… |
Yeah I'm so confused too... I've done settings all day and no way to get this working :/ |
I am getting this too when I try to update all my dependencies for my project.
|
Same problem. Warning always there after upgrading. Using Webpack 5. |
Yes this happens only with webpack 5 and i am using threads-plugin v1.4.0. |
I have spent several days looking for solution with webpack 5(babel+typescript+react) and finally found workaround:
|
You don't need the threads-plugin at all with webpack 5 (see #37). Will update the docs accordingly! Nevertheless, thanks for sharing your findings here 👍 |
Also having problems with this on webpack 5.10. Using the following babel presets:
Tried with and without using the plugin, also tried the |
Actually I have these configs and it does not work, so can you tell me what I'm doing wrong (of course I have
"module": "ESNext",
in my tsconfig) big thanksThe text was updated successfully, but these errors were encountered: