qwik: Qwik City Netlify starter does not build

Qwik Version

0.0.39

Operating System (or Browser)

Ubuntu 22.04.1

Node Version (if applicable)

v16.15.0

Which component is affected?

Starters / CLI

Expected Behaviour

  1. npm init qwik@latest - select Qwik City with Netlify
  2. npm install
  3. npm build - current build throw error, and I manually fixed errors following #938
  4. deploy to netlify

Expected: should show the initial start example

following

Actual Behaviour

Netlify site shows “TypeError: Cannot read properties of undefined (reading ‘write’)” on the page, with a 500 HTTP error when fetching /

Additional Information

// ./netlify/edge-functions/entry.netlify/entry.netlify.js

// ...
const write = opts.stream.write.bind(opts.stream);
const createDocTimer = createTimer();
const doc = _createDocument(opts);
// ...

renderToStream function in entry.ssr.tsx expects ops argument has a stream object with a write function.

Maybe the starter needs a proper @builder.io/qwik

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 16 (12 by maintainers)

Most upvoted comments

@youngboy I tried 0.0.42 and the latest 0.0.100, and both worked without any issues!

Hmm. Have you tried to clear the cache and redeploy? Other than that we might have to wait for the edge log to get working again.

Well, the edge log isn’t the most helpful thing I’ve seen. 😄 Do you get any errors running locally?