QwikDev/astro

Cant deploy to vercel

Closed this issue · 17 comments

Hi, I'm getting an error when I attempt to deploy an Astro + Qwik application to vercel.

npm dependencies:

"@astrojs/vercel": "^7.6.0",
"@builder.io/qwik": "^1.5.5",
"@builder.io/sdk-qwik": "^0.14.21",
"@qwikdev/astro": "^0.5.15",
"astro": "^4.9.1",

Error logs:

<html>
<body>
<!--StartFragment-->
Error: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by /vercel/path0/node_modules/@builder.io/qwik/bindings/qwik.linux-x64-gnu.node)
--
18:14:53.828 | at Module._extensions..node (node:internal/modules/cjs/loader:1452:18)
18:14:53.828 | at Module.load (node:internal/modules/cjs/loader:1197:32)
18:14:53.828 | at Module._load (node:internal/modules/cjs/loader:1013:12)
18:14:53.828 | at Module.require (node:internal/modules/cjs/loader:1225:19)
18:14:53.828 | at require (node:internal/modules/helpers:177:18)
18:14:53.828 | at loadPlatformBinding (file:///vercel/path0/node_modules/@builder.io/qwik/optimizer.mjs:1371:73)
18:14:53.828 | at async createOptimizer (file:///vercel/path0/node_modules/@builder.io/qwik/optimizer.mjs:1430:48)
18:14:53.828 | at async Object.init2 [as init] (file:///vercel/path0/node_modules/@builder.io/qwik/optimizer.mjs:1824:47)
18:14:53.828 | at async config (file:///vercel/path0/node_modules/@builder.io/qwik/optimizer.mjs:3341:7)
18:14:53.828 | at async runConfigHook (file:///vercel/path0/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:68742:25) {
18:14:53.828 | code: 'ERR_DLOPEN_FAILED'

<!--EndFragment-->
</body>
</html>

<html>
<body>
<!--StartFragment-->
QWIK ERROR Code(31) https://github.com/QwikDev/qwik/blob/main/packages/qwik/src/core/error/error.ts#L39 s_b4nYT3DrjEk Error: Code(31) https://github.com/QwikDev/qwik/blob/main/packages/qwik/src/core/error/error.ts#L39
--
18:14:58.615 | at createAndLogError (file:///vercel/path0/.vercel/output/_functions/chunks/pages/builder-preview_RynSMAdE.mjs:42:52)
18:14:58.615 | at logErrorAndStop (file:///vercel/path0/.vercel/output/_functions/chunks/pages/builder-preview_RynSMAdE.mjs:37:57)
18:14:58.615 | at qError (file:///vercel/path0/.vercel/output/_functions/chunks/pages/builder-preview_RynSMAdE.mjs:62:10)
18:14:58.615 | at serializeQRL (file:///vercel/path0/.vercel/output/_functions/chunks/pages/builder-preview_RynSMAdE.mjs:3434:11)
18:14:58.615 | at file:///vercel/path0/.vercel/output/_functions/chunks/pages/builder-preview_RynSMAdE.mjs:3457:42
18:14:58.615 | at mapJoin (file:///vercel/path0/.vercel/output/_functions/chunks/pages/builder-preview_RynSMAdE.mjs:3171:16)
18:14:58.615 | at serializeQRLs (file:///vercel/path0/.vercel/output/_functions/chunks/pages/builder-preview_RynSMAdE.mjs:3457:10)
18:14:58.615 | at renderNode (file:///vercel/path0/.vercel/output/_functions/chunks/pages/builder-preview_RynSMAdE.mjs:850:52)
18:14:58.615 | at processData$1 (file:///vercel/path0/.vercel/output/_functions/chunks/pages/builder-preview_RynSMAdE.mjs:902:16)
18:14:58.615 | at walkChildren (file:///vercel/path0/.vercel/output/_functions/chunks/pages/builder-preview_RynSMAdE.mjs:934:12)
18:14:58.616 | Error in renderToStaticMarkup function of @qwikdev/astro:  Error: Code(31) https://github.com/QwikDev/qwik/blob/main/packages/qwik/src/core/error/error.ts#L39
18:14:58.616 | at createAndLogError (file:///vercel/path0/.vercel/output/_functions/chunks/pages/builder-preview_RynSMAdE.mjs:42:52)
18:14:58.616 | at logErrorAndStop (file:///vercel/path0/.vercel/output/_functions/chunks/pages/builder-preview_RynSMAdE.mjs:37:57)
18:14:58.616 | at qError (file:///vercel/path0/.vercel/output/_functions/chunks/pages/builder-preview_RynSMAdE.mjs:62:10)
18:14:58.616 | at serializeQRL (file:///vercel/path0/.vercel/output/_functions/chunks/pages/builder-preview_RynSMAdE.mjs:3434:11)
18:14:58.616 | at file:///vercel/path0/.vercel/output/_functions/chunks/pages/builder-preview_RynSMAdE.mjs:3457:42
18:14:58.616 | at mapJoin (file:///vercel/path0/.vercel/output/_functions/chunks/pages/builder-preview_RynSMAdE.mjs:3171:16)
18:14:58.616 | at serializeQRLs (file:///vercel/path0/.vercel/output/_functions/chunks/pages/builder-preview_RynSMAdE.mjs:3457:10)
18:14:58.617 | at renderNode (file:///vercel/path0/.vercel/output/_functions/chunks/pages/builder-preview_RynSMAdE.mjs:850:52)
18:14:58.617 | at processData$1 (file:///vercel/path0/.vercel/output/_functions/chunks/pages/builder-preview_RynSMAdE.mjs:902:16)
18:14:58.617 | at walkChildren (file:///vercel/path0/.vercel/output/_functions/chunks/pages/builder-preview_RynSMAdE.mjs:934:12)
18:14:58.618 | file:///vercel/path0/.vercel/output/_functions/chunks/pages/builder-preview_RynSMAdE.mjs:44
18:14:58.618 | throw err;
18:14:58.618 | ^
18:14:58.618 |  
18:14:58.618 | Error: Code(31) https://github.com/QwikDev/qwik/blob/main/packages/qwik/src/core/error/error.ts#L39
18:14:58.618 | at createAndLogError (file:///vercel/path0/.vercel/output/_functions/chunks/pages/builder-preview_RynSMAdE.mjs:42:52)
18:14:58.619 | at logErrorAndStop (file:///vercel/path0/.vercel/output/_functions/chunks/pages/builder-preview_RynSMAdE.mjs:37:57)
18:14:58.619 | at qError (file:///vercel/path0/.vercel/output/_functions/chunks/pages/builder-preview_RynSMAdE.mjs:62:10)
18:14:58.619 | at serializeQRL (file:///vercel/path0/.vercel/output/_functions/chunks/pages/builder-preview_RynSMAdE.mjs:3434:11)
18:14:58.619 | at file:///vercel/path0/.vercel/output/_functions/chunks/pages/builder-preview_RynSMAdE.mjs:3457:42
18:14:58.619 | at mapJoin (file:///vercel/path0/.vercel/output/_functions/chunks/pages/builder-preview_RynSMAdE.mjs:3171:16)
18:14:58.619 | at serializeQRLs (file:///vercel/path0/.vercel/output/_functions/chunks/pages/builder-preview_RynSMAdE.mjs:3457:10)
18:14:58.619 | at renderNode (file:///vercel/path0/.vercel/output/_functions/chunks/pages/builder-preview_RynSMAdE.mjs:850:52)
18:14:58.619 | at processData$1 (file:///vercel/path0/.vercel/output/_functions/chunks/pages/builder-preview_RynSMAdE.mjs:902:16)
18:14:58.619 | at walkChildren (file:///vercel/path0/.vercel/output/_functions/chunks/pages/builder-preview_RynSMAdE.mjs:934:12)
18:14:58.619 |  
18:14:58.619 | Node.js v18.19.1
18:14:58.654 | Error: Command "npm run build" exited with 1

<!--EndFragment-->
</body>
</html>

Hey, @Joshswooft.

You should instead report the error to Qwik. However, the message is quite clear: "/lib64/libm.so.6: version `GLIBC_2.29' not found". I don't know your operating system but I assume it is a Unix-like system. If so, you can try this:

wget -4c https://ftp.gnu.org/gnu/glibc/glibc-2.29.tar.gz
tar -zxvf glibc-2.29.tar.gz
cd glibc-2.29
mkdir build_dir
cd build_dir
sudo ../configure --prefix=/opt/glibc
sudo make
sudo make install

@siguici Thanks, I'll raise it with them. I'm using vercel so not sure how much control I have over what dependencies can be installed on their machines.

I've re-opened this issue because whilst trying to make a minimum app that re-produced the issue the above GLIBC issue has disappeared but the qwikdev/astro error still remains. Here is the link to the source code

Error:

[12:30:22.231] Running build in Washington, D.C., USA (East) – iad1
[12:30:22.445] Cloning github.com/Joshswooft/fuzzy-waddle (Branch: main, Commit: 3cf24d8)
[12:30:23.095] Cloning completed: 642.797ms
[12:30:25.660] Restored build cache
[12:30:25.823] Running "vercel build"
[12:30:26.686] Vercel CLI 34.2.2
[12:30:27.978] Installing dependencies...
[12:30:31.103] 
[12:30:31.103] up to date in 2s
[12:30:31.103] 
[12:30:31.103] 199 packages are looking for funding
[12:30:31.103]   run `npm fund` for details
[12:30:31.136] Detected `package-lock.json` generated by npm 7+
[12:30:31.137] Running "npm run build"
[12:30:31.602] 
[12:30:31.602] > build
[12:30:31.602] > astro check && astro build
[12:30:31.602] 
[12:30:34.126] 11:30:34 Types generated 54ms
[12:30:34.133] 11:30:34 [check] Getting diagnostics for Astro files in /vercel/path0...
[12:30:37.466] �[96msrc/layouts/default.astro�[0m:�[93m16�[0m:�[93m17�[0m - �[93mwarning�[0m�[90m astro(4000): �[0mThis script will be treated as if it has the `is:inline` directive because it contains an attribute. Therefore, features that require processing (e.g. using TypeScript or npm packages in the script) are unavailable.
[12:30:37.466] 
[12:30:37.466] See docs for more details: https://docs.astro.build/en/guides/client-side-scripts/#script-processing.
[12:30:37.467] 
[12:30:37.467] Add the `is:inline` directive explicitly to silence this hint.
[12:30:37.467] 
[12:30:37.467] �[7m16�[0m         <script async src="https://cdn.builder.io/js/qwik/qwikloader.js"
[12:30:37.467] �[7m  �[0m �[93m                ~~~~~�[0m
[12:30:37.467] 
[12:30:37.512] Result (8 files): 
[12:30:37.512] - 0 errors
[12:30:37.512] - 0 warnings
[12:30:37.513] - 1 hint
[12:30:37.513] 
[12:30:39.097] 11:30:39 [@qwikdev/astro] astro:build:start
[12:30:39.113] �[36mvite v5.2.11 �[32mbuilding for production...�[36m�[39m
[12:30:39.147] transforming...
[12:30:39.370] �[32m✓�[39m 5 modules transformed.
[12:30:39.408] rendering chunks...
[12:30:39.425] computing gzip size...
[12:30:39.427] �[2mdist/�[22m�[32mbuild/q-bundle-graph-77ig4l.json  �[39m�[1m�[2m0.06 kB�[22m�[1m�[22m�[2m │ gzip: 0.06 kB�[22m
[12:30:39.428] �[2mdist/�[22m�[32mq-manifest.json                   �[39m�[1m�[2m1.34 kB�[22m�[1m�[22m�[2m │ gzip: 0.55 kB�[22m
[12:30:39.428] �[2mdist/�[22m�[32mqwik-prefetch-service-worker.js   �[39m�[1m�[2m3.58 kB�[22m�[1m�[22m
[12:30:39.428] �[2mdist/�[22m�[36mbuild/q-DBB_4DJj.js               �[39m�[1m�[2m0.06 kB�[22m�[1m�[22m�[2m │ gzip: 0.07 kB�[22m
[12:30:39.428] �[2mdist/�[22m�[36mbuild/q-Pc5tFKP5.js               �[39m�[1m�[2m0.34 kB�[22m�[1m�[22m�[2m │ gzip: 0.23 kB�[22m
[12:30:39.428] �[2mdist/�[22m�[36mbuild/q-DRazCl8O.js               �[39m�[1m�[2m5.86 kB�[22m�[1m�[22m�[2m │ gzip: 2.93 kB�[22m
[12:30:39.428] �[32m✓ built in 291ms�[39m
[12:30:39.430] 11:30:39 [build] output: "server"
[12:30:39.430] 11:30:39 [build] directory: /vercel/path0/.vercel/output/
[12:30:39.430] 11:30:39 [build] adapter: @astrojs/vercel/serverless
[12:30:39.430] 11:30:39 [build] Collecting build info...
[12:30:39.431] 11:30:39 [build] ✓ Completed in 443ms.
[12:30:39.432] 11:30:39 [build] Building server entrypoints...
[12:30:40.592] node_modules/@builder.io/sdk-qwik/lib/node/node-evaluate-db446d2b.js (9:25): Use of eval in "node_modules/@builder.io/sdk-qwik/lib/node/node-evaluate-db446d2b.js" is strongly discouraged as it poses security risks and may cause issues with minification.
[12:30:41.711] 11:30:41 [vite] �[32m✓ built in 2.27s�[39m
[12:30:41.712] 11:30:41 [build] ✓ Completed in 2.28s.
[12:30:41.747] 
[12:30:41.747]  prerendering static routes 
[12:30:41.749] 11:30:41 ▶ src/pages/blog/[slug].astro
[12:30:41.794] 11:30:41   ├─ /blog/my-blog-test/index.htmltitle: Blog post test 25/05/24, id: xxxx, isDraft: true
[12:30:41.831] Cannot resolve symbol s_b4nYT3DrjEk in { FY3ttnFVxsg: [ 's_FY3ttnFVxsg', 'q-Pc5tFKP5.js' ] }
[12:30:41.832] QWIK ERROR Code(31) https://github.com/QwikDev/qwik/blob/main/packages/qwik/src/core/error/error.ts#L39 s_b4nYT3DrjEk Error: Code(31) https://github.com/QwikDev/qwik/blob/main/packages/qwik/src/core/error/error.ts#L39
[12:30:41.832]     at createAndLogError (file:///vercel/path0/.vercel/output/_functions/chunks/prerender_BOvnRCHL.mjs:41:52)
[12:30:41.832]     at logErrorAndStop (file:///vercel/path0/.vercel/output/_functions/chunks/prerender_BOvnRCHL.mjs:36:57)
[12:30:41.832]     at qError (file:///vercel/path0/.vercel/output/_functions/chunks/prerender_BOvnRCHL.mjs:61:10)
[12:30:41.832]     at serializeQRL (file:///vercel/path0/.vercel/output/_functions/chunks/prerender_BOvnRCHL.mjs:3433:11)
[12:30:41.832]     at file:///vercel/path0/.vercel/output/_functions/chunks/prerender_BOvnRCHL.mjs:3456:42
[12:30:41.833]     at mapJoin (file:///vercel/path0/.vercel/output/_functions/chunks/prerender_BOvnRCHL.mjs:3170:16)
[12:30:41.833]     at serializeQRLs (file:///vercel/path0/.vercel/output/_functions/chunks/prerender_BOvnRCHL.mjs:3456:10)
[12:30:41.833]     at renderNode (file:///vercel/path0/.vercel/output/_functions/chunks/prerender_BOvnRCHL.mjs:849:52)
[12:30:41.833]     at processData$1 (file:///vercel/path0/.vercel/output/_functions/chunks/prerender_BOvnRCHL.mjs:901:16)
[12:30:41.833]     at walkChildren (file:///vercel/path0/.vercel/output/_functions/chunks/prerender_BOvnRCHL.mjs:933:12)
[12:30:41.834] Error in renderToStaticMarkup function of @qwikdev/astro:  Error: Code(31) https://github.com/QwikDev/qwik/blob/main/packages/qwik/src/core/error/error.ts#L39
[12:30:41.834]     at createAndLogError (file:///vercel/path0/.vercel/output/_functions/chunks/prerender_BOvnRCHL.mjs:41:52)
[12:30:41.834]     at logErrorAndStop (file:///vercel/path0/.vercel/output/_functions/chunks/prerender_BOvnRCHL.mjs:36:57)
[12:30:41.834]     at qError (file:///vercel/path0/.vercel/output/_functions/chunks/prerender_BOvnRCHL.mjs:61:10)
[12:30:41.834]     at serializeQRL (file:///vercel/path0/.vercel/output/_functions/chunks/prerender_BOvnRCHL.mjs:3433:11)
[12:30:41.834]     at file:///vercel/path0/.vercel/output/_functions/chunks/prerender_BOvnRCHL.mjs:3456:42
[12:30:41.836]     at mapJoin (file:///vercel/path0/.vercel/output/_functions/chunks/prerender_BOvnRCHL.mjs:3170:16)
[12:30:41.836]     at serializeQRLs (file:///vercel/path0/.vercel/output/_functions/chunks/prerender_BOvnRCHL.mjs:3456:10)
[12:30:41.836]     at renderNode (file:///vercel/path0/.vercel/output/_functions/chunks/prerender_BOvnRCHL.mjs:849:52)
[12:30:41.836]     at processData$1 (file:///vercel/path0/.vercel/output/_functions/chunks/prerender_BOvnRCHL.mjs:901:16)
[12:30:41.836]     at walkChildren (file:///vercel/path0/.vercel/output/_functions/chunks/prerender_BOvnRCHL.mjs:933:12)
[12:30:41.836] file:///vercel/path0/.vercel/output/_functions/chunks/prerender_BOvnRCHL.mjs:43
[12:30:41.836]     throw err;
[12:30:41.836]     ^
[12:30:41.836] 
[12:30:41.836] Error: Code(31) https://github.com/QwikDev/qwik/blob/main/packages/qwik/src/core/error/error.ts#L39
[12:30:41.836]     at createAndLogError (file:///vercel/path0/.vercel/output/_functions/chunks/prerender_BOvnRCHL.mjs:41:52)
[12:30:41.836]     at logErrorAndStop (file:///vercel/path0/.vercel/output/_functions/chunks/prerender_BOvnRCHL.mjs:36:57)
[12:30:41.836]     at qError (file:///vercel/path0/.vercel/output/_functions/chunks/prerender_BOvnRCHL.mjs:61:10)
[12:30:41.836]     at serializeQRL (file:///vercel/path0/.vercel/output/_functions/chunks/prerender_BOvnRCHL.mjs:3433:11)
[12:30:41.836]     at file:///vercel/path0/.vercel/output/_functions/chunks/prerender_BOvnRCHL.mjs:3456:42
[12:30:41.836]     at mapJoin (file:///vercel/path0/.vercel/output/_functions/chunks/prerender_BOvnRCHL.mjs:3170:16)
[12:30:41.836]     at serializeQRLs (file:///vercel/path0/.vercel/output/_functions/chunks/prerender_BOvnRCHL.mjs:3456:10)
[12:30:41.836]     at renderNode (file:///vercel/path0/.vercel/output/_functions/chunks/prerender_BOvnRCHL.mjs:849:52)
[12:30:41.836]     at processData$1 (file:///vercel/path0/.vercel/output/_functions/chunks/prerender_BOvnRCHL.mjs:901:16)
[12:30:41.836]     at walkChildren (file:///vercel/path0/.vercel/output/_functions/chunks/prerender_BOvnRCHL.mjs:933:12)
[12:30:41.837] 
[12:30:41.837] Node.js v20.12.2
[12:30:41.864] Error: Command "npm run build" exited with 1
[12:30:42.114] 

Can you specify how to reproduce this error? Because the build works perfectly on my side:

> @0.0.1 build /home/siguici/fuzzy-waddle
> astro check && astro build

19:17:13 Types generated 249ms
19:17:13 [check] Getting diagnostics for Astro files in /home/siguici/fuzzy-waddle...
src/layouts/default.astro:16:17 - warning astro(4000): This script will be treated as if it has the `is:inline` directive because it contains an attribute. Therefore, features that require processing (e.g. using TypeScript or npm packages in the script) are unavailable.

See docs for more details: https://docs.astro.build/en/guides/client-side-scripts/#script-processing.

Add the `is:inline` directive explicitly to silence this hint.

16         <script async src="https://cdn.builder.io/js/qwik/qwikloader.js"
                   ~~~~~

Result (8 files): 
- 0 errors
- 0 warnings
- 1 hint

19:17:41 [@qwikdev/astro] astro:build:start
vite v5.2.12 building for production...
✓ 5 modules transformed.
dist/build/q-bundle-graph-le3z7r.json  0.06 kB │ gzip: 0.06 kB
dist/q-manifest.json                   1.40 kB │ gzip: 0.58 kB
dist/qwik-prefetch-service-worker.js   3.58 kB
dist/build/q-DBB_4DJj.js               0.06 kB │ gzip: 0.07 kB
dist/build/q-Pc5tFKP5.js               0.34 kB │ gzip: 0.23 kB
dist/build/q-DRazCl8O.js               5.86 kB │ gzip: 2.93 kB
✓ built in 2.07s
19:17:43 [build] output: "server"
19:17:43 [build] directory: /home/siguici/fuzzy-waddle/.vercel/output/
19:17:43 [build] adapter: @astrojs/vercel/serverless
19:17:43 [build] Collecting build info...
19:17:43 [build] ✓ Completed in 2.81s.
19:17:43 [build] Building server entrypoints...
node_modules/.pnpm/@builder.io+sdk-qwik@0.14.21_@builder.io+qwik@1.5.5_undici@6.18.1_/node_modules/@builder.io/sdk-qwik/lib/node/node-evaluate-db446d2b.js (9:25): Use of eval in "node_modules/.pnpm/@builder.io+sdk-qwik@0.14.21_@builder.io+qwik@1.5.5_undici@6.18.1_/node_modules/@builder.io/sdk-qwik/lib/node/node-evaluate-db446d2b.js" is strongly discouraged as it poses security risks and may cause issues with minification.
19:18:01 [vite] ✓ built in 18.01s
19:18:01 [build] ✓ Completed in 18.07s.

 prerendering static routes 
19:18:02 ▶ src/pages/blog/[slug].astro
[Builder.io]:  Error fetching data.  Error: Missing API key
    at generateContentUrl (file:///home/siguici/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_bEkHZWr5.mjs:13466:24)
    at fetchEntries (file:///home/siguici/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_bEkHZWr5.mjs:13540:21)
    at Module.getStaticPaths (file:///home/siguici/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_bEkHZWr5.mjs:13562:32)
    at callGetStaticPaths (file:///home/siguici/fuzzy-waddle/node_modules/.pnpm/astro@4.9.2_typescript@5.4.5/node_modules/astro/dist/core/render/route-cache.js:28:27)
    at getPathsForRoute (file:///home/siguici/fuzzy-waddle/node_modules/.pnpm/astro@4.9.2_typescript@5.4.5/node_modules/astro/dist/core/build/generate.js:200:31)
    at generatePage (file:///home/siguici/fuzzy-waddle/node_modules/.pnpm/astro@4.9.2_typescript@5.4.5/node_modules/astro/dist/core/build/generate.js:169:25)
    at async generatePages (file:///home/siguici/fuzzy-waddle/node_modules/.pnpm/astro@4.9.2_typescript@5.4.5/node_modules/astro/dist/core/build/generate.js:113:11)
    at async staticBuild (file:///home/siguici/fuzzy-waddle/node_modules/.pnpm/astro@4.9.2_typescript@5.4.5/node_modules/astro/dist/core/build/static-build.js:109:7)
    at async AstroBuilder.build (file:///home/siguici/fuzzy-waddle/node_modules/.pnpm/astro@4.9.2_typescript@5.4.5/node_modules/astro/dist/core/build/index.js:133:5)
    at async AstroBuilder.run (file:///home/siguici/fuzzy-waddle/node_modules/.pnpm/astro@4.9.2_typescript@5.4.5/node_modules/astro/dist/core/build/index.js:164:7)
19:18:02 ✓ Completed in 112ms.

19:18:02 
 finalizing server assets 

19:18:02 [build] Rearranging server assets...
19:18:02 [@astrojs/vercel/serverless] Bundling function ../../_functions/entry.mjs
19:18:04 [build] Server built in 23.81s
19:18:04 [build] Complete!

@siguici Hey, there are instructions in the README on that github link I posted which should help you get setup.

I'm going to assume you didn't get that error because you didn't add your builderio public key nor create any blog content so therefore there is no content to be dynamically generated by Astro!

Running: npm run astro check && npm run astro build
Resulted in the same error i posted before:

For more context I am running node version: v18.17.0 although this error also happens when I deploy on vercel

22:06:23 [@qwikdev/astro] astro:build:start
vite v5.2.11 building for production...
✓ 5 modules transformed.
dist/build/q-bundle-graph-77ig4l.json  0.06 kB │ gzip: 0.06 kB
dist/q-manifest.json                   1.34 kB │ gzip: 0.55 kB
dist/qwik-prefetch-service-worker.js   3.58 kB
dist/build/q-DBB_4DJj.js               0.06 kB │ gzip: 0.07 kB
dist/build/q-Pc5tFKP5.js               0.34 kB │ gzip: 0.23 kB
dist/build/q-DRazCl8O.js               5.86 kB │ gzip: 2.93 kB
✓ built in 332ms
22:06:23 [build] output: "server"
22:06:23 [build] directory: /home/josh/projects/fuzzy-waddle/.vercel/output/
22:06:23 [build] adapter: @astrojs/vercel/serverless
22:06:23 [build] Collecting build info...
22:06:23 [build] ✓ Completed in 520ms.
22:06:23 [build] Building server entrypoints...
node_modules/@builder.io/sdk-qwik/lib/node/node-evaluate-db446d2b.js (9:25): Use of eval in "node_modules/@builder.io/sdk-qwik/lib/node/node-evaluate-db446d2b.js" is strongly discouraged as it poses security risks and may cause issues with minification.
22:06:25 [vite] ✓ built in 2.13s
22:06:25 [build] ✓ Completed in 2.15s.

 prerendering static routes
22:06:25 ▶ src/pages/blog/[slug].astro
22:06:25   ├─ /blog/my-blog-test/index.htmltitle: Blog post test 25/05/24, id: XXXX, isDraft: true
Cannot resolve symbol s_b4nYT3DrjEk in { FY3ttnFVxsg: [ 's_FY3ttnFVxsg', 'q-Pc5tFKP5.js' ] }
QWIK ERROR Code(31) https://github.com/QwikDev/qwik/blob/main/packages/qwik/src/core/error/error.ts#L39 s_b4nYT3DrjEk Error: Code(31) https://github.com/QwikDev/qwik/blob/main/packages/qwik/src/core/error/error.ts#L39
    at createAndLogError (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_Dy7LG7Dt.mjs:41:52)
    at logErrorAndStop (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_Dy7LG7Dt.mjs:36:57)
    at qError (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_Dy7LG7Dt.mjs:61:10)
    at serializeQRL (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_Dy7LG7Dt.mjs:3433:11)
    at file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_Dy7LG7Dt.mjs:3456:42
    at mapJoin (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_Dy7LG7Dt.mjs:3170:16)
    at serializeQRLs (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_Dy7LG7Dt.mjs:3456:10)
    at renderNode (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_Dy7LG7Dt.mjs:849:52)
    at processData$1 (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_Dy7LG7Dt.mjs:901:16)
    at walkChildren (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_Dy7LG7Dt.mjs:933:12)
Error in renderToStaticMarkup function of @qwikdev/astro:  Error: Code(31) https://github.com/QwikDev/qwik/blob/main/packages/qwik/src/core/error/error.ts#L39
    at createAndLogError (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_Dy7LG7Dt.mjs:41:52)
    at logErrorAndStop (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_Dy7LG7Dt.mjs:36:57)
    at qError (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_Dy7LG7Dt.mjs:61:10)
    at serializeQRL (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_Dy7LG7Dt.mjs:3433:11)
    at file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_Dy7LG7Dt.mjs:3456:42
    at mapJoin (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_Dy7LG7Dt.mjs:3170:16)
    at serializeQRLs (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_Dy7LG7Dt.mjs:3456:10)
    at renderNode (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_Dy7LG7Dt.mjs:849:52)
    at processData$1 (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_Dy7LG7Dt.mjs:901:16)
    at walkChildren (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_Dy7LG7Dt.mjs:933:12)
file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_Dy7LG7Dt.mjs:43
    throw err;
    ^

Error: Code(31) https://github.com/QwikDev/qwik/blob/main/packages/qwik/src/core/error/error.ts#L39
    at createAndLogError (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_Dy7LG7Dt.mjs:41:52)
    at logErrorAndStop (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_Dy7LG7Dt.mjs:36:57)
    at qError (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_Dy7LG7Dt.mjs:61:10)
    at serializeQRL (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_Dy7LG7Dt.mjs:3433:11)
    at file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_Dy7LG7Dt.mjs:3456:42
    at mapJoin (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_Dy7LG7Dt.mjs:3170:16)
    at serializeQRLs (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_Dy7LG7Dt.mjs:3456:10)
    at renderNode (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_Dy7LG7Dt.mjs:849:52)
    at processData$1 (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_Dy7LG7Dt.mjs:901:16)
    at walkChildren (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_Dy7LG7Dt.mjs:933:12)

Node.js v18.17.0

I deployed it on Vercel successfully:

Vercel CLI 34.2.3
? Set up and deploy “~/fuzzy-waddle”? yes
? Which scope do you want to deploy to? Sikessem
? Link to existing project? no
? What’s your project’s name? qwik-astro-fuzzy-waddle
? In which directory is your code located? ./
Local settings detected in vercel.json:
Auto-detected Project Settings (Astro):
- Build Command: astro build
- Development Command: astro dev --port $PORT
- Install Command: `yarn install`, `pnpm install`, `npm install`, or `bun install`
- Output Directory: dist
? Want to modify these settings? no
🔗  Linked to sikessem/qwik-astro-fuzzy-waddle (created .vercel)
🔍  Inspect: https://vercel.com/sikessem/qwik-astro-fuzzy-waddle/3UQRZ7cu5i1L2MGtG5P7TweUigKG [2s]
✅  Production: https://qwik-astro-fuzzy-waddle-d4adhpis5-sikessem.vercel.app [2s]
📝  Deployed to production. Run `vercel --prod` to overwrite later (https://vercel.link/2F).
💡  To change the domain or build command, go to https://vercel.com/sikessem/qwik-astro-fuzzy-waddle/settings

@siguici Whats the url to the blog post? You definitely set that up as well?

Hey, @Joshswooft. I would like you to try this method and let us know if you get any error with Qwik:

  1. Install Vercel CLI:
npm i -g vercel
  1. Deploy on Vercel:
cd /path/to/fuzzy-waddle
vercel

Updated to version : Vercel CLI 34.2.3 (npm i -g vercel).

Unfortunately I still get the same error logs :(

I can try and make some more in-depth setup notes to try and re-produce the issue on your end.

@siguici I've added a detailed README to the code: https://github.com/Joshswooft/fuzzy-waddle.

Please make sure you have deleted the previous project and re-cloned it then follow the setup instructions. Hopefully this time you will see the bug

Hi @Joshswooft.

I followed the steps that you mentioned in https://github.com/Joshswooft/fuzzy-waddle on different environments including Node@18.17.0 (as you mentioned) and Node@20.14.0 as well as with NPM and PNPM and I actually encounter the same type of error.

I hope @thejackshelton will take a look for further clarification. In the meantime, I'll take a closer look at the error on my end and see if I need to make a fix in the integration or report the error to Qwik.

If you have any suggestions or other problems about this integration, please let us know. We will do the necessary.
Feel free to send a PR if you find a solution.

I hope @thejackshelton will take a look for further clarification. In the meantime, I'll take a closer look at the error on my end and see if I need to make a fix in the integration or report the error to Qwik.

Error Message: QRLs can not be dynamically resolved, because it does not have a chunk path

Hi @thejackshelton , @siguici

Do you have any updates on this issue?

Hey @thejackshelton and @siguici.

Small update from me after spending a few hours tinkering around with stuff.

If I amend the astro.config.mjs file to this:

export default defineConfig({
  integrations: [qwikdev({
    include: "./src/components/**",
  })],
  output: "server",
  adapter: vercel(),
});

Then the error changes to:

Cannot resolve symbol EnableEditor_component__Fragment_onClick_b4nYT3DrjEk in { FY3ttnFVxsg: [ 's_FY3ttnFVxsg', 'q-Pc5tFKP5.js' ] }
QWIK ERROR Code(31) https://github.com/QwikDev/qwik/blob/main/packages/qwik/src/core/error/error.ts#L39 EnableEditor_component__Fragment_onClick_b4nYT3DrjEk Error: Code(31) https://github.com/QwikDev/qwik/blob/main/packages/qwik/src/core/error/error.ts#L39
    at createAndLogError (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:42:52)
    at logErrorAndStop (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:37:57)
    at qError (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:62:10)
    at serializeQRL (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:3433:11)
    at file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:3456:42
    at mapJoin (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:3171:16)
    at serializeQRLs (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:3456:10)
    at renderNode (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:850:52)
    at processData$1 (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:902:16)
    at walkChildren (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:934:12)
Error in renderToStaticMarkup function of @qwikdev/astro:  Error: Code(31) https://github.com/QwikDev/qwik/blob/main/packages/qwik/src/core/error/error.ts#L39
    at createAndLogError (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:42:52)
    at logErrorAndStop (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:37:57)
    at qError (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:62:10)
    at serializeQRL (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:3433:11)
    at file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:3456:42
    at mapJoin (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:3171:16)
    at serializeQRLs (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:3456:10)
    at renderNode (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:850:52)
    at processData$1 (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:902:16)
    at walkChildren (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:934:12)
file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:44
    throw err;
    ^

Error: Code(31) https://github.com/QwikDev/qwik/blob/main/packages/qwik/src/core/error/error.ts#L39
    at createAndLogError (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:42:52)
    at logErrorAndStop (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:37:57)
    at qError (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:62:10)
    at serializeQRL (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:3433:11)
    at file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:3456:42
    at mapJoin (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:3171:16)
    at serializeQRLs (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:3456:10)
    at renderNode (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:850:52)
    at processData$1 (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:902:16)
    at walkChildren (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:934:12)

Node.js v18.17.0

Now when I modify the node_modules/@qwikdev/astro/src/index.ts

// ...
updateConfig({
            vite: {
              ssr: {
                external: ['@builder.io/sdk-qwik'] 
              },
              // ...

The project will build successfully and the website will load however the blog content served from builder.io does not render. I feel like there is a rollup/vite option that needs to be specified here 🤔

The error above references a EnableEditor component: https://github.dev/BuilderIO/builder/blob/main/packages/sdks/src/components/content/components/enable-editor.lite.tsx

Which can be understood a little about here:
https://github.devBuilderIO/builder/packages/sdks/docs/ARCHITECTURE.md

Hey @thejackshelton and @siguici.

Small update from me after spending a few hours tinkering around with stuff.

If I amend the astro.config.mjs file to this:

export default defineConfig({
  integrations: [qwikdev({
    include: "./src/components/**",
  })],
  output: "server",
  adapter: vercel(),
});

Then the error changes to:

Cannot resolve symbol EnableEditor_component__Fragment_onClick_b4nYT3DrjEk in { FY3ttnFVxsg: [ 's_FY3ttnFVxsg', 'q-Pc5tFKP5.js' ] }
QWIK ERROR Code(31) https://github.com/QwikDev/qwik/blob/main/packages/qwik/src/core/error/error.ts#L39 EnableEditor_component__Fragment_onClick_b4nYT3DrjEk Error: Code(31) https://github.com/QwikDev/qwik/blob/main/packages/qwik/src/core/error/error.ts#L39
    at createAndLogError (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:42:52)
    at logErrorAndStop (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:37:57)
    at qError (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:62:10)
    at serializeQRL (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:3433:11)
    at file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:3456:42
    at mapJoin (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:3171:16)
    at serializeQRLs (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:3456:10)
    at renderNode (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:850:52)
    at processData$1 (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:902:16)
    at walkChildren (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:934:12)
Error in renderToStaticMarkup function of @qwikdev/astro:  Error: Code(31) https://github.com/QwikDev/qwik/blob/main/packages/qwik/src/core/error/error.ts#L39
    at createAndLogError (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:42:52)
    at logErrorAndStop (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:37:57)
    at qError (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:62:10)
    at serializeQRL (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:3433:11)
    at file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:3456:42
    at mapJoin (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:3171:16)
    at serializeQRLs (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:3456:10)
    at renderNode (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:850:52)
    at processData$1 (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:902:16)
    at walkChildren (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:934:12)
file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:44
    throw err;
    ^

Error: Code(31) https://github.com/QwikDev/qwik/blob/main/packages/qwik/src/core/error/error.ts#L39
    at createAndLogError (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:42:52)
    at logErrorAndStop (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:37:57)
    at qError (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:62:10)
    at serializeQRL (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:3433:11)
    at file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:3456:42
    at mapJoin (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:3171:16)
    at serializeQRLs (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:3456:10)
    at renderNode (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:850:52)
    at processData$1 (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:902:16)
    at walkChildren (file:///home/josh/projects/fuzzy-waddle/.vercel/output/_functions/chunks/prerender_M9C2GlAs.mjs:934:12)

Node.js v18.17.0

Now when I modify the node_modules/@qwikdev/astro/src/index.ts

// ...
updateConfig({
            vite: {
              ssr: {
                external: ['@builder.io/sdk-qwik'] 
              },
              // ...

The project will build successfully and the website will load however the blog content served from builder.io does not render. I feel like there is a rollup/vite option that needs to be specified here 🤔

The error above references a EnableEditor component: https://github.dev/BuilderIO/builder/blob/main/packages/sdks/src/components/content/components/enable-editor.lite.tsx

Which can be understood a little about here: https://github.devBuilderIO/builder/packages/sdks/docs/ARCHITECTURE.md

Hey @Joshswooft! Thanks for your patience on this issue.

This looks like a problem directly with the Builder.io CMS and Astro when using the Qwik SDK. I would bring this up on the builder.io forum.

Happy to chime in as well on the post and see if there's anything they may need from us Qwik Astronauts 😄

A potential problem I could see is the builder SDK making an assumption of Qwik City being used, as that was previously the only meta framework used by Qwik.

If there is an issue directly caused by this integration with a minimal reproduction also happy to debug, as @siguici mentioned above, Vercel appears to be working fine with the integration itself.

@Joshswooft for the time being, I am going to close this issue. Let me know if a post is created on the builder.io forum (so we can figure out the builder sdk problem) and I can chime in.

@thejackshelton Thanks for your reply and support for this issue. I ended up pivoting to web components for the time being as it's supported on builder.io.

When I get the chance I will follow this up on their forum and post a link here (for anyone else interested)