Not able to build properly
715209 opened this issue · comments
Hi, I'm trying to deploy my project and I keep getting this error (and sometimes Import #5
):
Uncaught (in promise) LinkError: WebAssembly.instantiate(): Import #6 module="wbg" function="__wbg_setInterval_e227d4d8a9d44d66" error: function import requires a callable
![image](https://private-user-images.githubusercontent.com/5977687/321620189-7f56822f-429b-49e1-bd75-99bfef680a8c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTU4NTMxNTIsIm5iZiI6MTcxNTg1Mjg1MiwicGF0aCI6Ii81OTc3Njg3LzMyMTYyMDE4OS03ZjU2ODIyZi00MjliLTQ5ZTEtYmQ3NS05OWJmZWY2ODBhOGMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDUxNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA1MTZUMDk0NzMyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NTRhY2ZlMjY3N2ZjYjdjMWM4MmQ4ZWVhYzk2OGVhZWMwMGIzZTBhYWVjMDFhZDUzOGVkOWNjZmZmZmViZjg5MiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.4j3YG_UgTcDbMPOTXW11I_TC4k34mjlWRBfClTVzY-U)
Not sure what's going on here, I'm using timers::future::IntervalStream::new(interval);
from gloo-timers
.
Everything is up to date, using trunk v0.19.1
.
I also have to build with --no-sri
, which seems to be only happening when building in release mode, or else I get the integrity error.
Failed to find a valid digest in the 'integrity' attribute for resource 'xxx' with computed SHA-384 integrity 'EisHsZkQm52iwWBJE3epgWPd9KalTlvoVYDHPJylPS6hI0iz06FZmqqGI+i4xubN'. The resource has been blocked
can you create a reproducer for that?
Just created this quickly https://github.com/715209/trunk-building-errors.
![image](https://private-user-images.githubusercontent.com/5977687/321637706-05a9ef70-50c6-4d53-88f5-52fb1a844542.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTU4NTMxNTIsIm5iZiI6MTcxNTg1Mjg1MiwicGF0aCI6Ii81OTc3Njg3LzMyMTYzNzcwNi0wNWE5ZWY3MC01MGM2LTRkNTMtODhmNS01MmZiMWE4NDQ1NDIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDUxNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA1MTZUMDk0NzMyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NjUxNjRlNjRkNDQxMWIxZWVjODJiMmM2NDEwMDMyNzZiOGY3NDVkMzBiZDVkZDBkNTI5ZTE5OGJlOWY0OWNlZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.RvN_X10W4qRiRdMZn4TlliqPOSxWkby0blIBLb4TQq0)
This one is new
![image](https://private-user-images.githubusercontent.com/5977687/321638106-062fb8d2-e9ad-4ce6-b124-22c91e05fede.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTU4NTMxNTIsIm5iZiI6MTcxNTg1Mjg1MiwicGF0aCI6Ii81OTc3Njg3LzMyMTYzODEwNi0wNjJmYjhkMi1lOWFkLTRjZTYtYjEyNC0yMmM5MWUwNWZlZGUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDUxNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA1MTZUMDk0NzMyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NjRlMjI4ODA2Njk2NGY5ZDUyZDI4NTBlMGY5NWYyZmJjOGZmZjYwMjg2ODc2MGUxMzJlMmY0MWEwZDE4NjhkNCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.JvsVZkNav05PrxW8kYq4YL7AVVegS-b7L9E6F5LtW3M)
Uncommenting test_sleep
Am I doing something clearly wrong?
I just tried it locally with trunk serve
and trunk serve --release
. Both seem to work just fine.
That's very strange. I used the cargo binstall trunk
version. Could it perhaps be an issue on mac os?
Just tried that too. Also using cargo binstall
. Same result, works.
Thank you for checking, what would you recommend me to do now? 😅
I am not sure, because I wouldn't see why the problem would exist, but I am also not able to reproduce it. I guess need to investigate it further.
For the SRI part, it might be you'd been affected by #765 as well. As that might depend on the generated output and isn't 100% reproducible I guess. It should be fixed with trunk 0.19.2
though.
Looks like updating to 0.19.2
solved all issues! Still have no clue why the wbg
module had those errors, but that is resolved as well 👍 .
Thanks for reporting back. I am not sure what exactly happened on your side, as it worked for me. Maybe it was a side of effect of the browser blocking the resource due to the SRI issue. Which definitely was an issue that was solved with 0.19.2
.
I'll close this issue for now. We can re-open if necessary.