Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using ssr: false throws on mount: Cannot create proxy with a non-object as target or handler #20210

Closed
stafyniaksacha opened this issue Apr 11, 2023 · 5 comments · Fixed by #20216
Assignees

Comments

@stafyniaksacha
Copy link
Contributor

stafyniaksacha commented Apr 11, 2023

Environment

RootDir: /home/projects/nuxt-starter-5g3aev
Nuxt project info:

  • Operating System: Linux
  • Node Version: v16.14.2
  • Nuxt Version: 3.4.0
  • Nitro Version: 2.3.3
  • Package Manager: npm@7.17.0
  • Builder: vite
  • User Config: routeRules
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/nuxt-starter-5g3aev?file=nuxt.config.ts

Describe the bug

Disabling SSR, (ex: through route rules, or in global config) result in blank page.

Same happen with experimental.renderJsonPayloads and experimental.respectNoSSRHeader

Additional context

No response

Logs

Error while mounting app: TypeError: Cannot create proxy with a non-object as target or handler
    at createNuxtApp (nuxt.js:98:1)
    at initApp (entry.js:39:18)
    at entry.js:57:3
@CharlesBT
Copy link

I have the same issue upgrading from 3.3.3 to 3.4.0

@stafyniaksacha stafyniaksacha changed the title Using ssr: false in routeRules throws on mount: Cannot create proxy with a non-object as target or handler Using ssr: false throws on mount: Cannot create proxy with a non-object as target or handler Apr 11, 2023
@danielroe danielroe self-assigned this Apr 11, 2023
m0ksem added a commit to epicmaxco/vuestic-ui that referenced this issue Apr 11, 2023
m0ksem added a commit to epicmaxco/vuestic-ui that referenced this issue Apr 12, 2023
@dodanex
Copy link

dodanex commented Apr 12, 2023

I have the same issue upgrading from 3.3.3 to 3.4.0

Me to, same error !

@CavalcanteLeo
Copy link

CavalcanteLeo commented Apr 13, 2023

I had the same error and had to downgrade it

And only downgrading it didn't work, I had to delete the lock file and node_modules

meadowsys added a commit to meadowsys/wiwipaccer that referenced this issue Apr 13, 2023
@valgeirb
Copy link

Wondering what the procedure is, when will you publish a patch for this?

@danielroe
Copy link
Member

It's planned for today: #20246.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants