Error deploying Qwik app to netlify, it don't show me my site

Hi, I really need some help with this. I created a website with Qwik framework and I deployed it into netlify site: https://nexasoft.netlify.app/, then when I open my deploy site, with no custom domain, it just load a error:

TypeError: Dynamic import is not enabled in this context.
at async file:///root/.netlify/edge-functions/entry.netlify-edge/assets/index.qwik-7463d797.js:11:57687
    at async Promise.all (index 0)
    at async ac (file:///root/.netlify/edge-functions/entry.netlify-edge/assets/index.qwik-7463d797.js:11:43763)
    at async $i (file:///root/.netlify/edge-functions/entry.netlify-edge/assets/index.qwik-7463d797.js:11:43685)
    at async De (file:///root/.netlify/edge-functions/entry.netlify-edge/entry.ssr.js:273:1662)
    at async file:///root/.netlify/edge-functions/entry.netlify-edge/entry.netlify-edge.js:20:4949

Build process doesn’t show me problems. I share my FULL build log & build settings.


2:17:00 PM: build-image version: a2d22d22e4555d1ef0a972ed14a0a4b366ad20c4 (focal)
2:17:00 PM: build-image tag: v4.16.3
2:17:00 PM: buildbot version: e9e3d43a47e741f8e4bfc543cd4f5a2efea8bed2
2:17:00 PM: Fetching cached dependencies
2:17:00 PM: Starting to download cache of 162.5MB
2:17:02 PM: Finished downloading cache in 2.099209528s
2:17:02 PM: Starting to extract cache
2:17:05 PM: Finished extracting cache in 2.302858086s
2:17:05 PM: Finished fetching cache in 4.45301406s
2:17:05 PM: Starting to prepare the repo for build
2:17:05 PM: Preparing Git Reference refs/heads/main
2:17:07 PM: Parsing package.json dependencies
2:17:08 PM: Different build command detected, going to use the one specified in the Netlify configuration file: ‘npm run build’ versus ‘pnpm build’ in the Netlify UI
2:17:08 PM: Starting build script
2:17:08 PM: Installing dependencies
2:17:08 PM: Python version set to 2.7
2:17:08 PM: Started restoring cached Node.js version
2:17:09 PM: Finished restoring cached Node.js version
2:17:09 PM: Attempting Node.js version ‘16’ from .node-version
2:17:09 PM: v16.19.0 is already installed.
2:17:09 PM: Now using node v16.19.0 (npm v8.19.3)
2:17:09 PM: Enabling Node.js Corepack
2:17:10 PM: Started restoring cached build plugins
2:17:10 PM: Finished restoring cached build plugins
2:17:10 PM: Attempting Ruby version 2.7.2, read from environment
2:17:10 PM: Using Ruby version 2.7.2
2:17:11 PM: Using PHP version 8.0
2:17:11 PM: Started restoring cached corepack dependencies
2:17:11 PM: mv: cannot move ‘/opt/build/cache/.node/corepack’ to ‘/opt/buildhome/.node/corepack’: No such file or directory
2:17:11 PM: Finished restoring cached corepack dependencies
2:17:11 PM: No pnpm workspaces detected
2:17:11 PM: Started restoring cached node modules
2:17:11 PM: Finished restoring cached node modules
2:17:11 PM: Installing npm packages using pnpm version 7.13.4
2:17:12 PM: Lockfile is up to date, resolution step is skipped
2:17:12 PM: Progress: resolved 1, reused 0, downloaded 0, added 0
2:17:12 PM: Packages: +25 -18
2:17:12 PM: ++++++++++++++++++++++++±-----------------
2:17:13 PM: Progress: resolved 25, reused 0, downloaded 13, added 12
2:17:14 PM: Progress: resolved 25, reused 0, downloaded 19, added 18
2:17:15 PM: Progress: resolved 25, reused 0, downloaded 22, added 23
2:17:16 PM: Progress: resolved 25, reused 0, downloaded 23, added 24
2:17:18 PM: Progress: resolved 25, reused 0, downloaded 24, added 24
2:17:19 PM: Progress: resolved 25, reused 0, downloaded 24, added 25, done
2:17:20 PM: …/node_modules/netlify-cli postinstall$ node ./scripts/postinstall.mjs
2:17:22 PM: …/node_modules/netlify-cli postinstall: Success! Netlify CLI has been installed!
2:17:22 PM: …/node_modules/netlify-cli postinstall: Your device is now configured to use Netlify CLI to deploy and manage your Netlify sites.
2:17:22 PM: …/node_modules/netlify-cli postinstall: Next steps:
2:17:22 PM: …/node_modules/netlify-cli postinstall: netlify init Connect or create a Netlify site from current directory
2:17:22 PM: …/node_modules/netlify-cli postinstall: netlify deploy Deploy the latest changes to your Netlify site
2:17:22 PM: …/node_modules/netlify-cli postinstall: For more information on the CLI run netlify help
2:17:22 PM: …/node_modules/netlify-cli postinstall: Or visit the docs at https://cli.netlify.com
2:17:22 PM: …/node_modules/netlify-cli postinstall: Done
2:17:23 PM: dependencies:
2:17:23 PM: - @ mui/material 5.11.4
2:17:23 PM: + @ mui/material 5.11.5
2:17:23 PM: Done in 11.3s
2:17:23 PM: npm packages installed using pnpm
2:17:23 PM: Started restoring cached go cache
2:17:23 PM: Finished restoring cached go cache
2:17:24 PM: Installing Go version 1.19.5 (requested 1.19.x)
2:17:29 PM: unset GOOS;
2:17:29 PM: unset GOARCH;
2:17:29 PM: export GOROOT=‘/opt/buildhome/.gimme/versions/go1.19.5.linux.amd64’;
2:17:29 PM: export PATH=“/opt/buildhome/.gimme/versions/go1.19.5.linux.amd64/bin:${PATH}”;
2:17:29 PM: go version >&2;
2:17:29 PM: export GIMME_ENV=“/opt/buildhome/.gimme/env/go1.19.5.linux.amd64.env”
2:17:29 PM: go version go1.19.5 linux/amd64
2:17:30 PM: Detected 1 framework(s)
2:17:30 PM: “qwik” at version “0.16.2”
2:17:30 PM: Installing missing commands
2:17:30 PM: Verify run directory
2:17:30 PM: Section completed: initializing
2:17:31 PM: ​
2:17:31 PM: Netlify Build
2:17:31 PM: ────────────────────────────────────────────────────────────────
2:17:31 PM: ​
2:17:31 PM: ❯ Version
2:17:31 PM: @netlify/build 29.5.0
2:17:31 PM: ​
2:17:31 PM: ❯ Flags
2:17:31 PM: baseRelDir: true
2:17:31 PM: buildId: 63c845ab78db35000936c1ad
2:17:31 PM: deployId: 63c845ab78db35000936c1af
2:17:31 PM: ​
2:17:31 PM: ❯ Current directory
2:17:31 PM: /opt/build/repo
2:17:31 PM: ​
2:17:31 PM: ❯ Config file
2:17:31 PM: /opt/build/repo/netlify.toml
2:17:31 PM: ​
2:17:31 PM: ❯ Context
2:17:31 PM: production
2:17:31 PM: ​
2:17:31 PM: 1. build.command from netlify.toml
2:17:31 PM: ────────────────────────────────────────────────────────────────
2:17:31 PM: ​
2:17:31 PM: $ npm run build
2:17:32 PM: > build
2:17:32 PM: > qwik build
2:17:32 PM: npm run build.types
2:17:32 PM: npm run build.client
2:17:32 PM: npm run build.server
2:17:32 PM: npm run lint
2:17:32 PM: > build.client
2:17:32 PM: > vite build
2:17:33 PM: vite v4.0.3 building for production…
2:17:34 PM: transforming…
2:17:34 PM: The JSX import source cannot be set without also enabling React’s “automatic” JSX transform1 | /** @ jsxImportSource react */ import { qwikifyQrl } from “@ Builder.io: Drag and drop Visual CMS”;
2:17:34 PM: | ^
2:17:34 PM: 2 | import { qrl } from “@ Builder.io: Drag and drop Visual CMS”;
2:17:34 PM: 3 | export const MUIButton = qwikifyQrl(qrl(()=>import(“…/…/entry_MUIButton.js”), “s_Hd8r0YexMcY”));
2:17:39 PM: ✓ 1499 modules transformed.
2:17:40 PM: rendering chunks…
2:17:40 PM: computing gzip size…
2:17:40 PM: dist/build/q-9c3967cc.png 20.74 kB
2:17:40 PM: dist/build/q-10322339.jpg 27.20 kB
2:17:40 PM: dist/build/q-0eb59d61.jpg 31.19 kB
2:17:40 PM: dist/build/q-836ec9e6.jpg 31.95 kB
2:17:40 PM: dist/build/q-df1fd55a.jpg 32.94 kB
2:17:40 PM: dist/build/q-feaf56a1.jpg 34.36 kB
2:17:40 PM: dist/build/q-031561bd.jpg 36.86 kB
2:17:40 PM: dist/build/q-9ea058f0.jpg 37.01 kB
2:17:40 PM: dist/build/q-bba068a6.jpg 38.03 kB
2:17:40 PM: dist/build/q-17b821f5.jpg 39.53 kB
2:17:40 PM: dist/build/q-cd49a122.jpg 40.04 kB
2:17:40 PM: dist/build/q-ab325ec8.jpg 43.43 kB
2:17:40 PM: dist/build/q-ca2712ea.jpg 44.14 kB
2:17:40 PM: dist/build/q-47f44c15.jpg 84.32 kB
2:17:40 PM: dist/q-manifest.json 137.75 kB
2:17:40 PM: dist/build/q-cb52bc06.jpg 253.48 kB
2:17:40 PM: dist/build/q-bfcb6a61.jpg 366.88 kB
2:17:40 PM: dist/build/q-f1e1bfce.jpg 673.98 kB
2:17:40 PM: dist/build/q-722801fe.jpg 680.55 kB
2:17:40 PM: dist/build/q-07a0c740.jpg 725.65 kB
2:17:40 PM: dist/build/q-8943d6a0.jpg 836.20 kB
2:17:40 PM: dist/build/q-20c9696a.png 1,286.76 kB
2:17:40 PM: dist/build/q-0ecc3d74.png 2,406.96 kB
2:17:40 PM: dist/build/q-59e6117b.png 5,788.10 kB
2:17:40 PM: dist/build/q-69078fd4.png 9,232.04 kB
2:17:40 PM: dist/build/q-73d6e646.js 0.06 kB │ gzip: 0.08 kB
2:17:40 PM: dist/build/q-613eb639.js 0.06 kB │ gzip: 0.08 kB
2:17:40 PM: dist/build/q-04a1b149.js 0.08 kB │ gzip: 0.10 kB
2:17:40 PM: dist/build/q-274f692c.js 0.09 kB │ gzip: 0.10 kB
2:17:40 PM: dist/build/q-34aad826.js 0.11 kB │ gzip: 0.12 kB
2:17:40 PM: dist/build/q-9659d534.js 0.11 kB │ gzip: 0.11 kB
2:17:40 PM: dist/build/q-e4ddb25c.js 0.13 kB │ gzip: 0.14 kB
2:17:40 PM: dist/build/q-659ddf86.js 0.19 kB │ gzip: 0.15 kB
2:17:40 PM: dist/build/q-725a6a0a.js 0.19 kB │ gzip: 0.14 kB
2:17:40 PM: dist/build/q-a0cdeb67.js 0.21 kB │ gzip: 0.17 kB
2:17:40 PM: dist/build/q-ffe59c1c.js 0.22 kB │ gzip: 0.20 kB
2:17:40 PM: dist/build/q-a73c94d0.js 0.22 kB │ gzip: 0.16 kB
2:17:40 PM: dist/build/q-03343ea7.js 0.24 kB │ gzip: 0.19 kB
2:17:40 PM: dist/build/q-f388ec9b.js 0.24 kB │ gzip: 0.16 kB
2:17:40 PM: dist/build/q-06fecdb6.js 0.25 kB │ gzip: 0.20 kB
2:17:40 PM: dist/build/q-ac436dab.js 0.25 kB │ gzip: 0.20 kB
2:17:40 PM: dist/build/q-be0afe62.js 0.26 kB │ gzip: 0.20 kB
2:17:40 PM: dist/build/q-f3dc0e73.js 0.27 kB │ gzip: 0.16 kB
2:17:40 PM: dist/build/q-fa429a48.js 0.27 kB │ gzip: 0.22 kB
2:17:40 PM: dist/build/q-56f500ce.js 0.28 kB │ gzip: 0.23 kB
2:17:40 PM: dist/build/q-fe8f9b13.js 0.29 kB │ gzip: 0.20 kB
2:17:40 PM: dist/build/q-1057a1b4.js 0.31 kB │ gzip: 0.20 kB
2:17:40 PM: dist/build/q-d52437a8.js 0.37 kB │ gzip: 0.28 kB
2:17:40 PM: dist/build/q-794834ae.js 0.41 kB │ gzip: 0.20 kB
2:17:40 PM: dist/build/q-287c2f13.js 0.42 kB │ gzip: 0.29 kB
2:17:40 PM: dist/build/q-72ac1c41.js 0.47 kB │ gzip: 0.29 kB
2:17:40 PM: dist/build/q-5d0a1951.js 0.47 kB │ gzip: 0.33 kB
2:17:40 PM: dist/build/q-660cead1.js 0.51 kB │ gzip: 0.34 kB
2:17:40 PM: dist/build/q-2620eb55.js 0.58 kB │ gzip: 0.35 kB
2:17:40 PM: dist/build/q-cc66ae49.js 0.65 kB │ gzip: 0.39 kB
2:17:40 PM: dist/build/q-921ede1f.js 0.65 kB │ gzip: 0.39 kB
2:17:40 PM: dist/build/q-d66c2921.js 0.67 kB │ gzip: 0.40 kB
2:17:40 PM: dist/build/q-dbe7c5d5.js 0.67 kB │ gzip: 0.40 kB
2:17:40 PM: dist/build/q-0409d4a4.js 0.68 kB │ gzip: 0.41 kB
2:17:40 PM: dist/build/q-c07fb4b6.js 0.68 kB │ gzip: 0.41 kB
2:17:40 PM: dist/build/q-47adcdbc.js 0.69 kB │ gzip: 0.40 kB
2:17:40 PM: dist/build/q-edf0b718.js 0.72 kB │ gzip: 0.31 kB
2:17:40 PM: dist/build/q-1b1c7c43.js 0.75 kB │ gzip: 0.43 kB
2:17:40 PM: dist/build/q-48eb6424.js 0.77 kB │ gzip: 0.47 kB
2:17:40 PM: dist/build/q-b05c7938.js 0.78 kB │ gzip: 0.47 kB
2:17:40 PM: dist/build/q-5d723dc7.js 0.78 kB │ gzip: 0.48 kB
2:17:40 PM: dist/build/q-ab15d162.js 0.78 kB │ gzip: 0.45 kB
2:17:40 PM: dist/build/q-a5368fb9.js 0.79 kB │ gzip: 0.48 kB
2:17:40 PM: dist/build/q-8e3d0230.js 1.12 kB │ gzip: 0.62 kB
2:17:40 PM: dist/build/q-0d2b6a28.js 1.13 kB │ gzip: 0.62 kB
2:17:40 PM: dist/build/q-93a57edb.js 1.22 kB │ gzip: 0.65 kB
2:17:40 PM: dist/build/q-02fe99fb.js 1.29 kB │ gzip: 0.67 kB
2:17:40 PM: dist/build/q-ae8a3d62.js 1.37 kB │ gzip: 0.79 kB
2:17:40 PM: dist/build/q-fbf2edc0.js 1.38 kB │ gzip: 0.74 kB
2:17:40 PM: dist/build/q-96746633.js 1.39 kB │ gzip: 0.71 kB
2:17:40 PM: dist/build/q-42275c08.js 1.40 kB │ gzip: 0.77 kB
2:17:40 PM: dist/build/q-34db84c3.js 1.59 kB │ gzip: 0.78 kB
2:17:40 PM: dist/build/q-634e6554.js 1.61 kB │ gzip: 0.89 kB
2:17:40 PM: dist/build/q-b947707f.js 1.63 kB │ gzip: 0.92 kB
2:17:40 PM: dist/build/q-df42ebdc.js 1.68 kB │ gzip: 0.90 kB
2:17:40 PM: dist/build/q-4628a65b.js 1.74 kB │ gzip: 0.82 kB
2:17:40 PM: dist/build/q-94edfa1e.js 1.77 kB │ gzip: 0.93 kB
2:17:40 PM: dist/build/q-b0e7ce91.js 1.83 kB │ gzip: 0.99 kB
2:17:40 PM: dist/build/q-ae1a02c6.js 1.84 kB │ gzip: 0.97 kB
2:17:40 PM: dist/build/q-b2533f14.js 1.86 kB │ gzip: 0.78 kB
2:17:40 PM: dist/build/q-3eccd1c0.js 1.97 kB │ gzip: 1.11 kB
2:17:40 PM: dist/build/q-1258b344.js 2.04 kB │ gzip: 0.92 kB
2:17:40 PM: dist/build/q-69e1595a.js 2.09 kB │ gzip: 0.99 kB
2:17:40 PM: dist/build/q-1aacdabe.js 2.16 kB │ gzip: 0.79 kB
2:17:40 PM: dist/build/q-df2e772b.js 2.35 kB │ gzip: 1.14 kB
2:17:40 PM: dist/build/q-2cd1c7a2.js 2.43 kB │ gzip: 1.14 kB
2:17:40 PM: dist/service-worker.js 2.54 kB │ gzip: 1.21 kB
2:17:40 PM: dist/build/q-97d28de9.js 2.81 kB │ gzip: 1.35 kB
2:17:40 PM: dist/build/q-ef8d60f0.js 2.88 kB │ gzip: 1.06 kB
2:17:40 PM: dist/build/q-af44a058.js 3.03 kB │ gzip: 1.43 kB
2:17:40 PM: dist/build/q-f2a881cb.js 3.19 kB │ gzip: 1.17 kB
2:17:40 PM: dist/build/q-7e23152e.js 3.22 kB │ gzip: 1.47 kB
2:17:40 PM: dist/build/q-701626f2.js 3.77 kB │ gzip: 1.56 kB
2:17:40 PM: dist/build/q-944fba52.js 4.28 kB │ gzip: 2.11 kB
2:17:40 PM: dist/build/q-3f87d307.js 4.53 kB │ gzip: 1.68 kB
2:17:40 PM: dist/build/q-4150de41.js 7.45 kB │ gzip: 2.69 kB
2:17:40 PM: dist/build/q-63936364.js 7.75 kB │ gzip: 3.06 kB
2:17:40 PM: dist/build/q-00c43688.js 12.11 kB │ gzip: 4.63 kB
2:17:40 PM: dist/build/q-cdf0e03f.js 12.51 kB │ gzip: 2.28 kB
2:17:40 PM: dist/build/q-947f9061.js 18.50 kB │ gzip: 6.04 kB
2:17:40 PM: dist/build/q-ae6269c0.js 19.07 kB │ gzip: 6.61 kB
2:17:40 PM: dist/build/q-8ab58ba4.js 43.52 kB │ gzip: 17.78 kB
2:17:40 PM: dist/build/q-7ec8b64b.js 45.54 kB │ gzip: 17.82 kB
2:17:40 PM: dist/build/q-d0a95e4e.js 134.10 kB │ gzip: 43.20 kB
2:17:40 PM: dist/build/q-e3c538a4.js 400.91 kB │ gzip: 120.63 kB
2:17:40 PM: ✓ Built client modules
2:17:50 PM: > build.server
2:17:50 PM: > vite build -c adaptors/netlify-edge/vite.config.ts
2:17:50 PM: vite v4.0.3 building SSR bundle for production…
2:17:50 PM: transforming…
2:17:50 PM: ✓ 1370 modules transformed.
2:17:50 PM: rendering chunks…
2:17:50 PM: .netlify/edge-functions/entry.netlify-edge/@ qwik-city-plan.js 0.19 kB
2:17:50 PM: .netlify/edge-functions/entry.netlify-edge/entry.netlify-edge.js 11.43 kB
2:17:50 PM: .netlify/edge-functions/entry.netlify-edge/assets/index.qwik-7463d797.js 67.92 kB
2:17:50 PM: .netlify/edge-functions/entry.netlify-edge/assets/server.f5cf7d4a-3c5c8567.js 70.00 kB
2:17:50 PM: .netlify/edge-functions/entry.netlify-edge/entry.ssr.js 146.79 kB
2:17:50 PM: .netlify/edge-functions/entry.netlify-edge/assets/@ qwik-city-plan-c2fdde44.js 698.00 kB
2:17:50 PM: SSG results
2:17:50 PM: - Generated: 3 pages
2:17:50 PM: - Duration: 1.8 s
2:17:50 PM: - Average: 616.5 ms per page
2:17:50 PM: ✓ Built server (ssr) modules
2:17:50 PM: ✓ Lint checked
2:17:50 PM: ​
2:17:50 PM: (build.command completed in 18.8s)
2:17:50 PM: ​
2:17:50 PM: 2. Functions bundling
2:17:50 PM: ────────────────────────────────────────────────────────────────
2:17:50 PM: ​
2:17:50 PM: The Netlify Functions setting targets a non-existing directory: netlify/functions
2:17:50 PM: ​
2:17:50 PM: (Functions bundling completed in 1ms)
2:17:50 PM: ​
2:17:50 PM: 3. Edge Functions bundling
2:17:50 PM: ────────────────────────────────────────────────────────────────
2:17:50 PM: ​
2:17:50 PM: Packaging Edge Functions from .netlify/edge-functions directory:
2:17:50 PM: - entry.netlify-edge
2:17:52 PM: ​
2:17:52 PM: (Edge Functions bundling completed in 1.8s)
2:17:52 PM: ​
2:17:52 PM: 4. Deploy site
2:17:52 PM: ────────────────────────────────────────────────────────────────
2:17:52 PM: ​
2:17:52 PM: Starting to deploy site from ‘dist’
2:17:52 PM: Creating deploy tree
2:17:52 PM: 46 new files to upload
2:17:52 PM: 0 new functions to upload
2:17:52 PM: Section completed: deploying
2:17:52 PM: Site deploy was successfully initiated
2:17:52 PM: ​
2:17:52 PM: (Deploy site completed in 526ms)
2:17:52 PM: ​
2:17:52 PM: Netlify Build Complete
2:17:52 PM: ────────────────────────────────────────────────────────────────
2:17:53 PM: Starting post processing
2:17:52 PM: ​
2:17:52 PM: (Netlify Build completed in 21.2s)
2:17:53 PM: Caching artifacts
2:17:53 PM: Started saving node modules
2:17:53 PM: Finished saving node modules
2:17:53 PM: Started saving build plugins
2:17:53 PM: Finished saving build plugins
2:17:53 PM: Post processing - HTML
2:17:53 PM: Started saving pip cache
2:17:53 PM: Finished saving pip cache
2:17:53 PM: Started saving emacs cask dependencies
2:17:53 PM: Finished saving emacs cask dependencies
2:17:53 PM: Started saving maven dependencies
2:17:53 PM: Finished saving maven dependencies
2:17:53 PM: Started saving boot dependencies
2:17:53 PM: Post processing - header rules
2:17:53 PM: Finished saving boot dependencies
2:17:53 PM: Started saving rust rustup cache
2:17:53 PM: Finished saving rust rustup cache
2:17:53 PM: Started saving go dependencies
2:17:53 PM: Post processing - redirect rules
2:17:53 PM: Finished saving go dependencies
2:17:53 PM: Build script success
2:17:53 PM: Section completed: building
2:17:54 PM: Post processing done
2:17:54 PM: Section completed: postprocessing
2:17:55 PM: Site is live :sparkles:
2:17:56 PM: Uploading Cache of size 175.7MB
2:17:57 PM: Section completed: cleanup
2:17:57 PM: Finished processing build request in 57.083615816s

Hey @Myke , your site seems to work now looking at the given url, facing a similar issue with my deployment, can you share how were you able to resolve it?

Hi @Myke can you please share what you used to resolve your issue?

I find a solution here, Blog post didnt work: How to Deploy the Qwik JavaScript Framework - #2 by hrishikesh. Netlify search for a html index file to server the site, but Qwik don’t use it as entry. So it’s necessary to run, pnpm qwik add, and select: Adaptor: Static site (.html files). Then in the vite config file that has been created update your site URL. That is all, made you git push and visit your deployed site.

Hi @Myke :wave:t6: thanks for engaging and sharing this we really appreciate it.