-
Notifications
You must be signed in to change notification settings - Fork 18
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
Preprocessor errors are hidden #5
Comments
I see that most likely subprocess is used for a hacked 'deasync' of svelte.preprocess() call... Anyway, I would suggest adding '--unhandled-rejections=strict' to child node. And FYI: the problem I was debugging ended up being a problem with node installed with snap package in Ubuntu: https://github.com/nodejs/node/issues/33456 So this approach can have undesired side-problems that are really hard to debug... |
Hey @angryziber, ye I know it's a shitty hack to make it work but async transformations are currently not supported by Jest. When I was building this transformer I tried a bunch of different approaches but they all had some cost, and this was the most stable work around I could get going. The good news is that async transformations are being worked on now (jestjs/jest#9889) but seems to be still a little early to tell when it'll be done. Thanks for the suggestion on |
Okay done it's released in |
@mihar-22 thanks |
I was getting the error Node 10.16.3 is still pretty widespread---this flag was only introduced recently in 10.17.0. |
Why call preprocessor in a separate process?
If it fails, the standard error remains invisible, stdout returns an empty string and svelte compiler produces an empty component, which just doesn't work and very hard to understand why
The text was updated successfully, but these errors were encountered: