-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Support Qwik City (dev server) #20612
Comments
The new vite-imagetools version uses a newer Sharp version which will allow Qwik City to work with Deno denoland/deno#20612
The new vite-imagetools version uses a newer Sharp version which will allow Qwik City to work with Deno denoland/deno#20612
Now we wait for Qwik 1.3 to come out (should be soon), and re-assess the status again |
Alright, this is the new situation with qwik 1.3
|
Just tried with latest qwik (1.4.1), and things are working in dev mode! It's a small thing, but I get all these deprecation warnings though: ➜ deno task dev
Task dev vite --mode ssr
(!) Could not auto-determine entry point from rollupOptions or html files and there are no explicit optimizeDeps.include patterns. Skipping dependency pre-bundling.
VITE v5.0.12 ready in 1479 ms
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
➜ press h + enter to show help
warning: Use of deprecated "Deno.stdin.rid" API. This API will be removed in Deno 2.
hint: Use `Deno.stdin` instance methods instead.
❗️ Expect significant performance loss in development.
❗️ Disabling the browser's cache results in waterfall requests.
warning: Use of deprecated "Deno.TcpConn.rid" API. This API will be removed in Deno 2.
Stack trace:
at ext:deno_http/00_serve.js:455:24
hint: Use `Deno.TcpConn` instance methods instead.
hint: It appears this API is used by a remote dependency. Try upgrading to the latest version of that dependency.
warning: Use of deprecated "Deno.TcpConn.rid" API. This API will be removed in Deno 2.
hint: Use `Deno.TcpConn` instance methods instead.
warning: Use of deprecated "Deno.TcpConn.rid" API. This API will be removed in Deno 2.
hint: Use `Deno.TcpConn` instance methods instead.
warning: Use of deprecated "Deno.TcpConn.rid" API. This API will be removed in Deno 2.
hint: Use `Deno.TcpConn` instance methods instead.
warning: Use of deprecated "Deno.FsFile.rid" API. This API will be removed in Deno 2.
Stack trace:
at ext:deno_node/_fs/_fs_open.ts:78:96
hint: Use `Deno.FsFile` methods directly instead.
hint: It appears this API is used by a remote dependency. Try upgrading to the latest version of that dependency. |
The npm run build.types
npm run build.client
npm run lint
> build.types
> tsc --incremental --noEmit
> build.client
> vite build
sh: vite: command not found
Warning: Not implemented: ChildProcess.prototype.disconnect |
CC @littledivy could you take a look at that? We should now support |
Alright, so now the > build.client
> vite build
sh: vite: command not found |
This is most likely caused by the fact that we don't set up proper entries in |
@bartlomieju , it would probably solve a multiple issues (at least remix as well) |
@bartlomieju I saw the new deno video: https://youtu.be/1IzcI-91iQM?feature=shared&t=92 , and i think it has some incorrect information on qwik support. ![]() I can't make Qwik City run with Deno 1.43.2 like it says it should be able to Trying with qwik 1.3.0 $ deno run -A npm:[email protected]
$ pnpm i
$ DENO_FUTURE=1 deno task dev
Task dev vite --mode ssr
The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
error when starting dev server:
Error: Platform not supported
at loadPlatformBinding (file:///Users/admin/repos/deno-kitchensink/qwik-app/node_modules/.deno/@[email protected]/node_modules/@builder.io/qwik/optimizer.cjs:1410:11)
at createOptimizer (file:///Users/admin/repos/deno-kitchensink/qwik-app/node_modules/.deno/@[email protected]/node_modules/@builder.io/qwik/optimizer.cjs:1439:93)
at async Object.init2 [as init] (file:///Users/admin/repos/deno-kitchensink/qwik-app/node_modules/.deno/@[email protected]/node_modules/@builder.io/qwik/optimizer.cjs:1812:49)
at async config (file:///Users/admin/repos/deno-kitchensink/qwik-app/node_modules/.deno/@[email protected]/node_modules/@builder.io/qwik/optimizer.cjs:3218:9)
at async runConfigHook (file:///Users/admin/repos/deno-kitchensink/qwik-app/node_modules/.deno/[email protected]/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:68750:25)
at async resolveConfig (file:///Users/admin/repos/deno-kitchensink/qwik-app/node_modules/.deno/[email protected]/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:68198:14)
at async _createServer (file:///Users/admin/repos/deno-kitchensink/qwik-app/node_modules/.deno/[email protected]/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:64702:20)
at async CAC.<anonymous> (file:///Users/admin/repos/deno-kitchensink/qwik-app/node_modules/.deno/[email protected]/node_modules/vite/dist/node/cli.js:762:24)
Trying latest qwik 1.5.4 $ deno run -A npm:[email protected]
$ pnpm i
$ DENO_FUTURE=1 deno task dev ( or just `deno task dev`)
Task dev vite --mode ssr
failed to load config from /Users/admin/repos/deno-kitchensink/qwik-app2/vite.config.ts
error when starting dev server:
SyntaxError: The requested module 'node:http2' does not provide an export named 'Http2ServerRequest' at file:///Users/admin/repos/deno-kitchensink/qwik-app2/node_modules/@builder.io/qwik-city/vite/index.mjs:25672:10
at async loadConfigFromBundledFile (file:///Users/admin/repos/deno-kitchensink/qwik-app2/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:68705:21)
at async loadConfigFromFile (file:///Users/admin/repos/deno-kitchensink/qwik-app2/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:68558:28)
at async resolveConfig (file:///Users/admin/repos/deno-kitchensink/qwik-app2/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:68161:28)
at async _createServer (file:///Users/admin/repos/deno-kitchensink/qwik-app2/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:64686:20)
at async CAC.<anonymous> (file:///Users/admin/repos/deno-kitchensink/qwik-app2/node_modules/vite/dist/node/cli.js:762:24)
|
Ugh, I'm not really sure. I'm gonna ping @littledivy who has been running tests for Qwik for the past months. Maybe we don't work any more with a newer version? |
maybe, it's broken in 1.44 at least |
hmm yeah its errors with:
|
Qwik - Qwik City - GitHub
Platform
Darwin 22.6.0 arm64 arm
Version
deno 1.37.0
Repro
deno run -A npm:[email protected]
(UPDATE: works from v1.4.1)deno task dev
Expected
Dev server start
Actual
Related to:
The text was updated successfully, but these errors were encountered: