Bjorn Lu

Results 767 comments of Bjorn Lu

Can you explain why you want to start on multiple host? Node.js `createServer` only supports starting on one host (unless DNS could resolve multiple different hosts to this one).

I suppose we can call `.listen()` multiple times to support multiple hosts, but it doesn't seem like a common usecase. There's the same discussion in webpack: https://github.com/webpack/webpack-dev-server/issues/400

If you're adding custom events, have you tried this? https://vitejs.dev/guide/api-plugin.html#typescript-for-custom-events It would be in a separate `.d.ts` file for it to work, which is understandably a bit odd compared to...

This is because `vue-pdf` exports the raw Vue file, which esbuild can't handle unless there's a esbuild plugin that handles Vue files. Until plugin-vue supports something like https://github.com/vitejs/vite/pull/6801 (experimental), `vue-pdf`...

I'd second working around it in Nuxt at the meantime. There's a solution of using `meta.vite.lang` to specify the extension like: https://github.com/vitejs/vite/blob/dc0022529610f159d5e635087307ac109746d830/packages/plugin-vue/src/main.ts#L229-L233 But this isn't commonly used yet, and it...

Possibly related to https://github.com/vitejs/vite-plugin-vue/issues/26 and https://github.com/vitejs/vite/issues/7454#issuecomment-1079938377. I wonder if `resolve.dedupe: ['vue']` would fix this too.

Closing as this has a similar setup as vitejs/vite#7454 with the same core issue. And the issue has notes about Nuxt.

My bad it looks like it's slightly different with the issue arising in dev only.

Leaving a note that Astro 3.0 (releasing before node16 EOL) will only support node18 and above. So it might temporarily not work in stackblitz as we use some node18 APIs,...

I've sent https://github.com/withastro/astro/pull/11084 that fixes it.