qwik icon indicating copy to clipboard operation
qwik copied to clipboard

fix(dev): vite base and qrl segment fixes

Open wmertens opened this issue 1 year ago β€’ 5 comments

  • fixes nx monorepo path lookup in dev mode
  • fix vite prefix for css etc
  • fix qrl segment path encoding for windows in dev mode
  • only pass parent filename since path is always the same
  • simplify resolveId path handling
  • change starter to only add service worker in production
  • add base url to manifest

wmertens avatar Jul 01 '24 21:07 wmertens

Deploy Preview for qwik-insights processing.

Name Link
Latest commit a2aead60277d2be7721959d3da8c20739a2ac798
Latest deploy log https://app.netlify.com/sites/qwik-insights/deploys/66831a1be56a150008b3cc25

netlify[bot] avatar Jul 01 '24 21:07 netlify[bot]

Deploy Preview for qwik-insights ready!

Name Link
Latest commit f086139bf5d3459628b0b4b33d74d7067ff7aa98
Latest deploy log https://app.netlify.com/sites/qwik-insights/deploys/668d065e474bcc0008e4055e
Deploy Preview https://deploy-preview-6629--qwik-insights.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar Jul 01 '24 21:07 netlify[bot]

Deploying qwik-docs with Β Cloudflare Pages Β Cloudflare Pages

Latest commit: f086139
Status:Β βœ…Β  Deploy successful!
Preview URL: https://56a44c4d.qwik-8nx.pages.dev
Branch Preview URL: https://fix-dev.qwik-8nx.pages.dev

View logs

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

commit: f086139

@builder.io/qwik

npm i https://pkg.pr.new/@builder.io/qwik@6629
@builder.io/qwik-city

npm i https://pkg.pr.new/@builder.io/qwik-city@6629
eslint-plugin-qwik

npm i https://pkg.pr.new/eslint-plugin-qwik@6629
create-qwik

npm i https://pkg.pr.new/create-qwik@6629

templates

pkg-pr-new[bot] avatar Jul 01 '24 21:07 pkg-pr-new[bot]

How long can this be taken till the pull request is accepted and we can easy use this fix? It's only a question. If it takes longer I will migrate my real project from npm to pnpm. Because I only can use the fix with pnpm or how it is possible with npm?

This fix does not solve all off my useOn... problems but a lot.

frankroc2022 avatar Jul 04 '24 13:07 frankroc2022

@frankroc2022 it seems in good shape now, I'd just like some more confirmations that it works for everyone

wmertens avatar Jul 04 '24 19:07 wmertens

@frankroc2022 in meantime you can use the continuous build created from this PR. We structured a multi steps approval inside of the core team to reduce regressions like the one we had with v1.6.0. Thanks for your patience.

gioboa avatar Jul 04 '24 19:07 gioboa

@frankroc2022 it seems in good shape now, I'd just like some more confirmations that it works for everyone

@wmertens I've used the continuous build, but I get this error: image

For reference, I've added a clickable div:

<div onClick$={() => console.log('1')}>click me</div>

El-Potato-Slayer avatar Jul 05 '24 05:07 El-Potato-Slayer

Just tried this version.

Got the following error: Failed to fetch dynamically imported module: http://localhost:5173/%40fsC%3A%5Csrc%5Cgithub%5Cmilkyway%5Cweb%5Cnode_modules%5Cqwik-speak%5Clib/useqwikspeak_resumecontext_6bh92hvek8o.js?_qrl_parent=use-qwik-speak.qwik.mjs

Here are some logs with qwikVite({ debug: true }):

Details
Qwik Speak Resolved locale: pt
[QWIK PLUGIN: 804] load() Not found C:/src/github/milkyway/web/i18n/pt/app.json
[QWIK PLUGIN: 804] load() Not found C:/src/github/milkyway/web/i18n/pt/home.json
[QWIK PLUGIN: 804] load() Not found C:/src/github/milkyway/web/i18n/pt/listing.json
[QWIK PLUGIN: 804] load() Not found C:/src/github/milkyway/web/i18n/pt/product.json
[QWIK PLUGIN: 804] load() Not found C:/src/github/milkyway/web/i18n/pt/runtime.json
[QWIK PLUGIN: 804] transform() Not transforming C:/src/github/milkyway/web/i18n/pt/app.json
[QWIK PLUGIN: 804] transform() Not transforming C:/src/github/milkyway/web/i18n/pt/home.json
[QWIK PLUGIN: 804] transform() Not transforming C:/src/github/milkyway/web/i18n/pt/product.json
[QWIK PLUGIN: 804] transform() Not transforming C:/src/github/milkyway/web/i18n/pt/listing.json
[QWIK PLUGIN: 804] transform() Not transforming C:/src/github/milkyway/web/i18n/pt/runtime.json
[QWIK PLUGIN: 804] resolveId(824) Start /@fs/C:/src/github/milkyway/web/node_modules/vite/dist/client/client.mjs { from:
 'C:\\src\\github\\milkyway\\web\\index.html', for: 'client' }
[QWIK PLUGIN: 804] resolveId(824) Not resolved /C:/src/github/milkyway/web/node_modules/vite/dist/client/client.mjs C:/src/github/milkyway/web/index.html
[QWIK PLUGIN: 804] resolveId(825) Start /@fs/C:/src/github/milkyway/web/node_modules/vite/dist/client/client.mjs { from:
 'C:\\src\\github\\milkyway\\web\\index.html', for: 'client' }
[QWIK PLUGIN: 804] resolveId(825) Not resolved /C:/src/github/milkyway/web/node_modules/vite/dist/client/client.mjs C:/src/github/milkyway/web/index.html
[QWIK PLUGIN: 804] load() Not found C:/src/github/milkyway/web/node_modules/vite/dist/client/client.mjs
[QWIK PLUGIN: 804] transform() Not transforming C:/src/github/milkyway/web/node_modules/vite/dist/client/client.mjs
[QWIK PLUGIN: 804] resolveId(826) Start /@fs/C:/src/github/milkyway/web/node_modules/vite/dist/client/env.mjs {
  from: 'C:/src/github/milkyway/web/node_modules/vite/dist/client/client.mjs',
  for: 'client'
}
[QWIK PLUGIN: 804] resolveId(826) Not resolved /@fs/C:/src/github/milkyway/web/node_modules/vite/dist/client/env.mjs C:/src/github/milkyway/web/node_modules/vite/dist/client/client.mjs
[QWIK PLUGIN: 804] load() Not found C:/src/github/milkyway/web/node_modules/vite/dist/client/env.mjs
[QWIK PLUGIN: 804] transform() Not transforming C:/src/github/milkyway/web/node_modules/vite/dist/client/env.mjs
[QWIK PLUGIN: 804] resolveId(827) Start /%40fsC%3A\src\github\milkyway\web\src/root_component_useondocument_p6osfoenwte.js?_qrl_parent=root.tsx { from: 'C:\\src\\github\\milkyway\\web\\index.html', for: 'client' }
[QWIK PLUGIN: 804] resolveId(827) Resolved C:/src/github/milkyway/web/@fsC:/src/github/milkyway/web/src/root_component_useondocument_p6osfoenwte.js from transformedOutputs
[QWIK PLUGIN: 804] resolveId(828) Start /%40fsC%3A\src\github\milkyway\web\src/root_component_useondocument_p6osfoenwte.js?_qrl_parent=root.tsx { from: 'C:\\src\\github\\milkyway\\web\\index.html', for: 'client' }
[QWIK PLUGIN: 804] resolveId(828) Resolved C:/src/github/milkyway/web/@fsC:/src/github/milkyway/web/src/root_component_useondocument_p6osfoenwte.js from transformedOutputs
[QWIK PLUGIN: 804] load() transforming QRL parent C:/src/github/milkyway/web/@fsC:/src/github/milkyway/web/src/root.tsx
[QWIK PLUGIN: 804] resolveId(829) Start C:/src/github/milkyway/web/@fsC:/src/github/milkyway/web/src/root.tsx { from: 'C:\\src\\github\\milkyway\\web\\index.html', for: 'client' }
[QWIK PLUGIN: 804] resolveId(829) falling back to default resolver
[QWIK PLUGIN: 804] resolveId(830) Start C:/src/github/milkyway/web/@fsC:/src/github/milkyway/web/src/root.tsx { from: 'C:\\src\\github\\milkyway\\web\\index.html', for: 'client' }
[QWIK PLUGIN: 804] resolveId(830) falling back to default resolver
[QWIK PLUGIN: 804] load() Not found C:/src/github/milkyway/web/@fsC:/src/github/milkyway/web/src/root.tsx
[QWIK PLUGIN: 804] resolveId(831) Start /%40fsC%3A\src\github\milkyway\web\node_modules\qwik-speak\lib/useqwikspeak_resumecontext_6bh92hvek8o.js?_qrl_parent=use-qwik-speak.qwik.mjs { from: 'C:\\src\\github\\milkyway\\web\\index.html', for: 'client' }
[QWIK PLUGIN: 804] resolveId(831) Resolved C:/src/github/milkyway/web/@fsC:/src/github/milkyway/web/node_modules/qwik-speak/lib/useqwikspeak_resumecontext_6bh92hvek8o.js from transformedOutputs
[QWIK PLUGIN: 804] resolveId(832) Start /%40fsC%3A\src\github\milkyway\web\node_modules\qwik-speak\lib/useqwikspeak_resumecontext_6bh92hvek8o.js?_qrl_parent=use-qwik-speak.qwik.mjs { from: 'C:\\src\\github\\milkyway\\web\\index.html', for: 'client' }
[QWIK PLUGIN: 804] resolveId(832) Resolved C:/src/github/milkyway/web/@fsC:/src/github/milkyway/web/node_modules/qwik-speak/lib/useqwikspeak_resumecontext_6bh92hvek8o.js from transformedOutputs
[QWIK PLUGIN: 804] load() transforming QRL parent C:/src/github/milkyway/web/@fsC:/src/github/milkyway/web/node_modules/qwik-speak/lib/use-qwik-speak.qwik.mjs
[QWIK PLUGIN: 804] resolveId(833) Start C:/src/github/milkyway/web/@fsC:/src/github/milkyway/web/node_modules/qwik-speak/lib/use-qwik-speak.qwik.mjs { from: 'C:\\src\\github\\milkyway\\web\\index.html', for: 'client' }
[QWIK PLUGIN: 804] resolveId(833) falling back to default resolver
[QWIK PLUGIN: 804] resolveId(834) Start C:/src/github/milkyway/web/@fsC:/src/github/milkyway/web/node_modules/qwik-speak/lib/use-qwik-speak.qwik.mjs { from: 'C:\\src\\github\\milkyway\\web\\index.html', for: 'client' }
[QWIK PLUGIN: 804] resolveId(834) falling back to default resolver
[QWIK PLUGIN: 804] load() Not found C:/src/github/milkyway/web/@fsC:/src/github/milkyway/web/node_modules/qwik-speak/lib/use-qwik-speak.qwik.mjs
Qwik Speak warn Locale not resolved. Fallback to default locale: en
[QWIK PLUGIN: 804] load() Not found C:/src/github/milkyway/web/i18n/en/app.json
[QWIK PLUGIN: 804] load() Not found C:/src/github/milkyway/web/i18n/en/home.json
[QWIK PLUGIN: 804] load() Not found C:/src/github/milkyway/web/i18n/en/listing.json
[QWIK PLUGIN: 804] load() Not found C:/src/github/milkyway/web/i18n/en/product.json
[QWIK PLUGIN: 804] load() Not found C:/src/github/milkyway/web/i18n/en/runtime.json
[QWIK PLUGIN: 804] transform() Not transforming C:/src/github/milkyway/web/i18n/en/product.json
[QWIK PLUGIN: 804] transform() Not transforming C:/src/github/milkyway/web/i18n/en/listing.json
[QWIK PLUGIN: 804] transform() Not transforming C:/src/github/milkyway/web/i18n/en/app.json
[QWIK PLUGIN: 804] transform() Not transforming C:/src/github/milkyway/web/i18n/en/home.json
[QWIK PLUGIN: 804] transform() Not transforming C:/src/github/milkyway/web/i18n/en/runtime.json
15:02:30 [vite] Internal server error: Missing Qwik City Env Data for help visit https://github.com/QwikDev/qwik/issues/6237
      at AsyncFunction.QwikCityProvider_component_TxCFOy819ag [as resolved] (C:\src\github\milkyway\web\node_modules\@builder.io\qwik-city\index.qwik.mjs:659:11)
      at AsyncFunction.invokeApply (C:\src\github\milkyway\web\dist-dev\tsc-out\packages\qwik\src\core\util\implicit_dollar.js:3665:22)
      at AsyncFunction.invoke (C:\src\github\milkyway\web\dist-dev\tsc-out\packages\qwik\src\core\util\implicit_dollar.js:3658:22)
      at C:\src\github\milkyway\web\dist-dev\tsc-out\packages\qwik\src\core\util\implicit_dollar.js:7297:21
      at maybeThen (C:\src\github\milkyway\web\dist-dev\tsc-out\packages\qwik\src\core\util\implicit_dollar.js:384:54)
      at C:\src\github\milkyway\web\dist-dev\tsc-out\packages\qwik\src\core\util\implicit_dollar.js:7289:25
      at C:\src\github\milkyway\web\dist-dev\tsc-out\packages\qwik\src\core\util\implicit_dollar.js:1043:25
      at safeCall (C:\src\github\milkyway\web\dist-dev\tsc-out\packages\qwik\src\core\util\implicit_dollar.js:373:21)
      at executeComponent (C:\src\github\milkyway\web\dist-dev\tsc-out\packages\qwik\src\core\util\implicit_dollar.js:1043:10)
      at renderSSRComponent (C:\src\github\milkyway\web\dist-dev\tsc-out\packages\qwik\src\core\util\implicit_dollar.js:1405:20)
Qwik Speak warn Locale not resolved. Fallback to default locale: en
15:02:30 [vite] Internal server error: Missing Qwik City Env Data for help visit https://github.com/QwikDev/qwik/issues/6237
      at AsyncFunction.QwikCityProvider_component_TxCFOy819ag [as resolved] (C:\src\github\milkyway\web\node_modules\@builder.io\qwik-city\index.qwik.mjs:659:11)
      at AsyncFunction.invokeApply (C:\src\github\milkyway\web\dist-dev\tsc-out\packages\qwik\src\core\util\implicit_dollar.js:3665:22)
      at AsyncFunction.invoke (C:\src\github\milkyway\web\dist-dev\tsc-out\packages\qwik\src\core\util\implicit_dollar.js:3658:22)
      at C:\src\github\milkyway\web\dist-dev\tsc-out\packages\qwik\src\core\util\implicit_dollar.js:7297:21
      at maybeThen (C:\src\github\milkyway\web\dist-dev\tsc-out\packages\qwik\src\core\util\implicit_dollar.js:384:54)
      at C:\src\github\milkyway\web\dist-dev\tsc-out\packages\qwik\src\core\util\implicit_dollar.js:7289:25
      at C:\src\github\milkyway\web\dist-dev\tsc-out\packages\qwik\src\core\util\implicit_dollar.js:1043:25
      at safeCall (C:\src\github\milkyway\web\dist-dev\tsc-out\packages\qwik\src\core\util\implicit_dollar.js:373:21)
      at executeComponent (C:\src\github\milkyway\web\dist-dev\tsc-out\packages\qwik\src\core\util\implicit_dollar.js:1043:10)
      at renderSSRComponent (C:\src\github\milkyway\web\dist-dev\tsc-out\packages\qwik\src\core\util\implicit_dollar.js:1405:20) (x2)

nelsonprsousa avatar Jul 06 '24 14:07 nelsonprsousa

@wmertens just tested it and it seems like it's fixing the constant error, but when I change something and HMR it goes straight into the following error: image

And it goes away when I manually refrech...

If it helps, it seems like it's failing to load the segment of an event handler QRL of the following code:

      window:onScroll$={() => {
        windowScrolled.value = window.scrollY > 0;
      }}

shairez avatar Jul 06 '24 22:07 shairez

@nelsonprsousa thank you, looks like it's not handling absolute paths in windows correctly. I'll try to fix.

@shairez is this with qwik-ui?

wmertens avatar Jul 07 '24 12:07 wmertens

Is it possible to use @wmertens fix commit with npm? Or only with pnpm?

frankroc2022 avatar Jul 08 '24 13:07 frankroc2022

@frankroc2022 the instructions literally use npm :-)

npm i https://pkg.pr.new/@builder.io/qwik@6629

wmertens avatar Jul 08 '24 15:07 wmertens

Thx. I did it wrong. It fixes all my vite hmr dev problems. Nice!

But what triggered these problems qwik or browser changes? I had these problems also with qwik v.1.5.7 and many other versions I tested.

frankroc2022 avatar Jul 08 '24 16:07 frankroc2022

@nelsonprsousa I think it's fixed for windows now, can you try?

wmertens avatar Jul 08 '24 17:07 wmertens

@nelsonprsousa I think it's fixed for windows now, can you try?

I tried again but got the same error.

Also, on console:

TypeError: Failed to fetch dynamically imported module: http://localhost:5173/%40fsC%3A%5Csrc%5Cgithub%5Cmilkyway%5Cweb%5Csrc/root_component_useondocument_p6osfoenwte.js?_qrl_parent=root.tsx
dispatch @ pt/:2809
"@builder.io/qwik-city@https://pkg.pr.new/@builder.io/qwik-city@6629":
  version: 1.6.0-dev20240704222606

Any ideia if this is the correct version?

nelsonprsousa avatar Jul 08 '24 18:07 nelsonprsousa

@nelsonprsousa no the version should have today's date like dev20240708

wmertens avatar Jul 08 '24 18:07 wmertens

@nelsonprsousa no the version should have today's date like dev20240708

Let me run yarn cache clean and check again. I suspected as well πŸ˜…

nelsonprsousa avatar Jul 08 '24 18:07 nelsonprsousa

Yeap, that was it, now I have:

"@builder.io/qwik-city@https://pkg.pr.new/@builder.io/qwik-city@6629":
  version: 1.6.0-dev20240708174604
  resolution: "@builder.io/qwik-city@https://pkg.pr.new/@builder.io/qwik-city@6629"

But still with same error πŸ€”

nelsonprsousa avatar Jul 08 '24 18:07 nelsonprsousa

@nelsonprsousa does it still say stuff like Not found C:/src/github/milkyway/web/@fsC:/src/github/milkyway? so C: twice in there?

wmertens avatar Jul 08 '24 18:07 wmertens

@nelsonprsousa does it still say stuff like Not found C:/src/github/milkyway/web/@fsC:/src/github/milkyway? so C: twice in there?

Webpage:

Failed to fetch dynamically imported module: http://localhost:5173/%40fsC%3A%5Csrc%5Cgithub%5Cmilkyway%5Cweb%5Cnode_modules%5Cqwik-speak%5Clib/useqwikspeak_resumecontext_6bh92hvek8o.js?_qrl_parent=use-qwik-speak.qwik.mjs

Console:

TypeError: Failed to fetch dynamically imported module: http://localhost:5173/%40fsC%3A%5Csrc%5Cgithub%5Cmilkyway%5Cweb%5Csrc/root_component_useondocument_p6osfoenwte.js?_qrl_parent=root.tsx

nelsonprsousa avatar Jul 08 '24 18:07 nelsonprsousa

Weirdly enough, the first error is this one:

Missing Qwik City Env Data for help visit https://github.com/QwikDev/qwik/issues/6237

Then it just get replaced in like 0.1 seconds

nelsonprsousa avatar Jul 08 '24 18:07 nelsonprsousa

actually, http://localhost:5173/%40fsC is wrong, it should say have the @ like http://localhost:5173/@fsC, that's a recent commit, but even then it should say http://localhost:5173/@fs/C, so it's still wrong.

wmertens avatar Jul 08 '24 18:07 wmertens

actually, http://localhost:5173/%40fsC is wrong, it should say have the @ like http://localhost:5173/@fsC, that's a recent commit, but even then it should say http://localhost:5173/@fs/C, so it's still wrong.

Just deleted node_modules folder.

Got:

Failed to fetch dynamically imported module: http://localhost:5173/@fsC%3A%5Csrc%5Cgithub%5Cmilkyway%5Cweb%5Cnode_modules%5Cqwik-speak%5Clib/useqwikspeak_resumecontext_6bh92hvek8o.js?_qrl_parent=use-qwik-speak.qwik.mjs

Looks like we are getting closer.

nelsonprsousa avatar Jul 08 '24 19:07 nelsonprsousa

Today 2024-07-08 I run npm i https://pkg.pr.new/@builder.io/qwik@6629. Just I run npm list, it showed: @builder.io/[email protected]

Then I changed in package.json "@builder.io/qwik": "https://pkg.pr.new/@builder.io/qwik@6629", to "@builder.io/qwik": "https://pkg.pr.new/@builder.io/qwik@6629#dc466d6", (latest commit so far)

Now npm list shows: @builder.io/[email protected]

I rechecked it. With both commits after run npm run dev I get the error: "error loading dynamically imported module" but If I then change my code and hmr refrehes page the error is gone and I can change my code how often I want. To be clear I only have the problem once after enter npm run dev.

I get this error for [...catchall] and without [...catchall].

frankroc2022 avatar Jul 08 '24 19:07 frankroc2022

@frankroc2022

"error loading dynamically imported module" look in your browser console for errors like "outdated optimized dep", and maybe add those modules to optimizeDeps.exclude

wmertens avatar Jul 08 '24 19:07 wmertens

"error loading dynamically imported module: http://localhost:5173/src/components/ts/global_component_useondocument_1nxsaijurq4.js?_qrl_parent=global.tsx"

console: http://localhost:5173/src/components/ts/global_component_useondocument_1nxsaijurq4.js?_qrl_parent=global.tsx 504 Outdated Optimize Dep

But how I can add my custom component to:

optimizeDeps: {
      // Put problematic deps that break bundling here, mostly those with binaries.
      // For example ['better-sqlite3'] if you use that in server functions.
      exclude: [],
    }

?

Info: Firefox, Linux in Oracle VirtualBox for Windows. All up-to-date.

frankroc2022 avatar Jul 08 '24 20:07 frankroc2022

FYI -

Whenever there's a new commit being pushed to a PR, the commit hash here is being updated

That means that you can install the latest commit by replacing the number suffix (6629) with the commit hash like this:

https://pkg.pr.new/@builder.io/qwik@dc466d6

shairez avatar Jul 08 '24 22:07 shairez

@nelsonprsousa can you test the latest update?

@frankroc2022 can you look into global.tsx, are you importing anything there?

wmertens avatar Jul 09 '24 11:07 wmertens

@nelsonprsousa can you test the latest update?

@frankroc2022 can you look into global.tsx, are you importing anything there?

Just checked the new version.

Looks like I can no longer import { qwikCity } from '@builder.io/qwik-city/vite'. Rings any bell?

image

✘ [ERROR] Missing "./vite" specifier in "@builder.io/qwik" package [plugin externalize-deps]

    node_modules/vite/node_modules/esbuild/lib/main.js:1225:27:
      1225 β”‚         let result = await callback({
           β•΅                            ^

    at e (file:///C:/src/github/milkyway/web/node_modules/vite/dist/node/chunks/dep-CzJTQ5q7.js:46568:25)
    at n (file:///C:/src/github/milkyway/web/node_modules/vite/dist/node/chunks/dep-CzJTQ5q7.js:46568:627)
    at o (file:///C:/src/github/milkyway/web/node_modules/vite/dist/node/chunks/dep-CzJTQ5q7.js:46568:1297)
    at resolveExportsOrImports (file:///C:/src/github/milkyway/web/node_modules/vite/dist/node/chunks/dep-CzJTQ5q7.js:47189:18)
    at resolveDeepImport (file:///C:/src/github/milkyway/web/node_modules/vite/dist/node/chunks/dep-CzJTQ5q7.js:47212:25)
    at tryNodeResolve (file:///C:/src/github/milkyway/web/node_modules/vite/dist/node/chunks/dep-CzJTQ5q7.js:46977:16)
    at resolveByViteResolver (file:///C:/src/github/milkyway/web/node_modules/vite/dist/node/chunks/dep-CzJTQ5q7.js:66878:20)
    at file:///C:/src/github/milkyway/web/node_modules/vite/dist/node/chunks/dep-CzJTQ5q7.js:66911:28
    at requestCallbacks.on-resolve (C:\src\github\milkyway\web\node_modules\vite\node_modules\esbuild\lib\main.js:1225:28)
    at handleRequest (C:\src\github\milkyway\web\node_modules\vite\node_modules\esbuild\lib\main.js:647:17)

  This error came from the "onResolve" callback registered here:

    node_modules/vite/node_modules/esbuild/lib/main.js:1150:20:
      1150 β”‚       let promise = setup({
           β•΅                     ^

    at setup (file:///C:/src/github/milkyway/web/node_modules/vite/dist/node/chunks/dep-CzJTQ5q7.js:66899:18)
    at handlePlugins (C:\src\github\milkyway\web\node_modules\vite\node_modules\esbuild\lib\main.js:1150:21)
    at buildOrContextImpl (C:\src\github\milkyway\web\node_modules\vite\node_modules\esbuild\lib\main.js:873:5)
    at Object.buildOrContext (C:\src\github\milkyway\web\node_modules\vite\node_modules\esbuild\lib\main.js:699:5)
    at C:\src\github\milkyway\web\node_modules\vite\node_modules\esbuild\lib\main.js:2023:15
    at new Promise (<anonymous>)
    at Object.build (C:\src\github\milkyway\web\node_modules\vite\node_modules\esbuild\lib\main.js:2022:25)
    at build (C:\src\github\milkyway\web\node_modules\vite\node_modules\esbuild\lib\main.js:1873:51)
    at bundleConfigFile (file:///C:/src/github/milkyway/web/node_modules/vite/dist/node/chunks/dep-CzJTQ5q7.js:66854:24)

  The plugin "externalize-deps" was triggered by this import

    vite.config.ts:5:25:
      5 β”‚ import { qwikCity } from '@builder.io/qwik-city/vite';
        β•΅                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

failed to load config from C:\src\github\milkyway\web\vite.config.ts
error when starting dev server:
Error: Build failed with 1 error:
node_modules/vite/node_modules/esbuild/lib/main.js:1225:27: ERROR: [plugin: externalize-deps] Missing "./vite" specifier in "@builder.io/qwik" package
    at failureErrorWithLog (C:\src\github\milkyway\web\node_modules\vite\node_modules\esbuild\lib\main.js:1472:15)
    at C:\src\github\milkyway\web\node_modules\vite\node_modules\esbuild\lib\main.js:945:25
    at runOnEndCallbacks (C:\src\github\milkyway\web\node_modules\vite\node_modules\esbuild\lib\main.js:1315:45)
    at buildResponseToResult (C:\src\github\milkyway\web\node_modules\vite\node_modules\esbuild\lib\main.js:943:7)
    at C:\src\github\milkyway\web\node_modules\vite\node_modules\esbuild\lib\main.js:970:16
    at responseCallbacks.<computed> (C:\src\github\milkyway\web\node_modules\vite\node_modules\esbuild\lib\main.js:622:9)
    at handleIncomingPacket (C:\src\github\milkyway\web\node_modules\vite\node_modules\esbuild\lib\main.js:677:12)
    at Socket.readFromStdout (C:\src\github\milkyway\web\node_modules\vite\node_modules\esbuild\lib\main.js:600:7)
    at Socket.emit (node:events:519:28)
    at addChunk (node:internal/streams/readable:559:12)

nelsonprsousa avatar Jul 09 '24 11:07 nelsonprsousa