Deploy Qwik Static Site Generation Project

PLEASE help me solve this project deploy to netlify.

I have this site https://nexasoft.netlify.app, I have tried to update my dependencies, but when project is been deployed, I get this Error:

6:40:57 PM: ✓ built in 17.99s
6:40:57 PM: ✓ Built client modules
6:42:00 PM: Error during SSG
6:42:00 PM: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
6:42:00 PM: Pathname: /
6:42:00 PM: Plugin: qwik-ssg
6:42:00 PM: at Ib (/opt/build/repo/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js:72:155)
6:42:00 PM: at W (/opt/build/repo/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js:73:89)
6:42:00 PM: at Gb (/opt/build/repo/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js:65:470)
6:42:00 PM: at Ib (/opt/build/repo/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js:67:211)
6:42:00 PM: at W (/opt/build/repo/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js:73:89)
6:42:00 PM: at Gb (/opt/build/repo/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js:65:470)
6:42:00 PM: at Ib (/opt/build/repo/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js:67:211)
6:42:00 PM: at W (/opt/build/repo/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js:73:89)
6:42:00 PM: at Jb (/opt/build/repo/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js:76:98)
6:42:00 PM: at Ib (/opt/build/repo/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js:68:145)
6:42:00 PM: error during build

Hi @Myke,

Thanks for reaching out!

Checking the deploy logs of your most recent builds, I see two errors:

First error:

7:42:00 PM: Error during SSG

7:42:00 PM: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.

Second error:

7:42:00 PM: error during build:
7:42:00 PM: undefined
7:42:00 PM:  ELIFECYCLE  Command failed with exit code 1. (https://ntl.fyi/exit-code-1)

If you resolve those errors do you still have issues? Could you let us know what’s changed between your last successful build and the failed builds?

Hi Melvin

I am getting those errors, they don`t tell me how to solve this. First of them, refer to this document where I have no any access, “/opt/build/repo/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js:72:155”, I have already delete node_modules and reinstall dependencies.

Since my last successful build I update to Qwik 1.0.0, netlify-cli 15.0.2 and vite 4.3.5.

I haven’t seen an error tell you how to solve it, unless it’s a very obvious error (like missing a character in some cases).

If you’re getting those errors locally as well, I am not sure how this is a Netlify issue. Try sorting out the issues locally.