wrangler-legacy
wrangler-legacy copied to clipboard
`dev` and `preview` produce unhelpful error message when bucket directory is missing
dev and preview output Error: No such file or directory (os error 2) without any further indication on what's wrong. After lot of trial and error I ran publish which actually produced a meaningful error message that helped me solve the issue.
% wrangler build
✨ Built successfully, built project size is 494 KiB.
% wrangler dev
🌀 Using namespace for Workers Site "…"
Error: No such file or directory (os error 2)
% wrangler preview
🌀 Using namespace for Workers Site "…"
Error: No such file or directory (os error 2)
% wrangler publish
✨ Built successfully, built project size is 494 KiB.
Error: ⚠️ bucket directory "release/browser" does not exist
wrangler 1.12.3
Did you get any resolution on this @fluidsonic? :)
@ashleyoldershaw I've never checked. Once I've found and fixed the cause of the error I didn't run into it again. But given that so much time has passed it would likely confuse me again :)
Yes! The issue is we need to run npm export - hope this helps someone in future!
Thanks for creating this issue! Wrangler v1 is now deprecated and support is only being provided for critical updates or security concerns. As such, we are closing this PR.
New versions of Wrangler are maintained in the workers-sdk repo. If you are running into a similar issue with wrangler v2, please report it or create a new PR in the workers-sdk repo. For more info about wrangler v1 deprecation, please check out our blog post.