Uh oh!
There was an error while loading. Please reload this page.
Bug fix: support webpack 5 in ts-loader - #1439
Conversation
Error when running ts-loader with webpack 5 : "times is not iterable"
johnnyreilly
commented
Mar 8, 2022
Thanks! Just kicked off the tests |
johnnyreilly
commented
Mar 8, 2022
The build is failing at the moment? |
johnnyreilly
commented
Mar 8, 2022
I notice this approach depends upon |
alexander-akait
commented
Mar 8, 2022
@vankop friendly ping, I think it is regression |
vankop
commented
Mar 8, 2022
hm.. maybe some watch bug.. could you create a small reproducible repo? From code this could happen ( |
johnnyreilly
commented
Mar 8, 2022
This is actually a question about types; we're getting this compilation error:
It suggests that there is no available |
vankop
commented
Mar 8, 2022
yes, |
johnnyreilly
commented
Mar 8, 2022
Okay cool. Is there a public API that can be used? Is there an |
johnnyreilly
commented
Mar 8, 2022
Just looking at the code and I can see there's a |
johnnyreilly
commented
Mar 9, 2022
@einatbar would you like to update your pr to use @alexander-akait / @vankop if you have thoughts then please do share! |
vankop
commented
Mar 9, 2022
I think |
alexander-akait
left a comment
There was a problem hiding this comment.
I think we should use snapshot API here, there is small example how we do it in copy plugin https://github.com/webpack-contrib/copy-webpack-plugin/blob/master/src/index.js#L569
If I understand correctly this code snippet does:
So you can use 2 api methods createSnapshot (example above) and on watch callback check that snapshot is valid So I think you can use and it still unclear to me why |
einatbar
commented
Mar 9, 2022
@vankop |
johnnyreilly
commented
Mar 9, 2022
Would it be enough to guard against |
@johnnyreilly looks like it's working as well if I just guard against compiler.fileTimestamps |
johnnyreilly
commented
Mar 9, 2022
Cool - fancy updating the PR? |
einatbar
commented
Mar 10, 2022
@johnnyreilly sure, on it |
johnnyreilly
commented
Mar 10, 2022
Awesome, do you want to update the |
elf-mouse
commented
Mar 11, 2022
@einatbar , thank you very much :) |
einatbar
commented
Mar 13, 2022
@johnnyreilly Thank you! :) |
johnnyreilly
commented
Mar 13, 2022
My pleasure @einatbar ! |
Fixes Error when running ts-loader with webpack 5 : "times is not iterable"
closes#1438