Closed grempe closed 5 years ago
hi @grempe ! sorry you are running into this! can you tell me what sort of project this was? the preview service works on a basic js project for me- so it's possible you ran into something that was related to your script specifically- so any details around that would help me debug!
hey @grempe ! It looks like your project includes KV namespaces, which are not supported by the preview service. This is an unfortunate bug, but we have a partial fix for it started here: https://github.com/cloudflare/wrangler/pull/424.
Hmmm. Well, that seems like a pretty critical miss after the most recent release of official support for k/v in wrangler. It would certainly be better for developers if the preview service did support k/v. Even if it was mocked. Just declining to send k/v config (and adding conditional code for k/v as the PR seems to imply) doesn't seem like the right long term solution IMHO.
I agree that is not the correct long term solution. We have a few, more robust ideas around how to improve Wrangler's interactions with the preview service, however they are not slated for work this quarter. I'll write up the start of the RFC and link it here so you can track its progress. For now, to unblock folks, the fix in the above PR is our short term solution.
@grempe we met today to discuss this issue and decided to bump it to critical priority. Follow progress on this PR: #429. Thank you for your feedback!
Excellent.
🐛 Bug Report
Environment
rustc -V
:node -v
:wrangler -V
:Steps to reproduce
Run
wrangler preview
What did you expect to see?
Clean build and display of preview.
What did you see instead?
FYI, running
wrangler build
, orwrangler publish
runs cleanly and works as expected.