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

Nuxt Starter Project no longer works when SSR is false on 3.4.0 #20240

Closed
justinwride opened this issue Apr 12, 2023 · 2 comments
Closed

Nuxt Starter Project no longer works when SSR is false on 3.4.0 #20240

justinwride opened this issue Apr 12, 2023 · 2 comments

Comments

@justinwride
Copy link

justinwride commented Apr 12, 2023

Environment

  • Operating System: Darwin
  • Node Version: v16.18.1
  • Nuxt Version: 3.4.0
  • Nitro Version: 2.3.3
  • Package Manager: npm@8.19.2
  • Builder: vite
  • User Config: ssr
  • Runtime Modules: -
  • Build Modules: -

Reproduction

I created a new Nuxt application using npx nuxi init project-ssr-false

Then ran npm install

The only change I made was in nuxt.config.ts:

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
    ssr: false
})

Then npm run dev

Here is a repo with the configuration specified above that reproduces the issue: https://github.com/justinwride/project-ssr-false

Describe the bug

The bug is a blank white page when I expected to see my Nuxt application.

After navigating to http://localhost:3000 I get the following console errors:
image

Additional context

This error does not happen on version 3.3.3. It is a new error with version 3.4.0.

The line that appears to be failing is this:

const nuxt = createNuxtApp({ vueApp });

Which is failing because of this line:

const runtimeConfig = process.server ? options.ssrContext.runtimeConfig : reactive(nuxtApp.payload.config);

It appears that nuxtApp.payload.config is undefined

Logs

entry.js:39 value cannot be made reactive: undefined
createReactiveObject @ vue.js?v=2e04f03c:1090
reactive @ vue.js?v=2e04f03c:1076
createNuxtApp @ nuxt.js?v=33afac7b:97
initApp @ entry.js:39
(anonymous) @ entry.js:57
Show 3 more frames
entry.js:58 Error while mounting app: TypeError: Cannot create proxy with a non-object as target or handler
    at createNuxtApp (nuxt.js?v=33afac7b:98:1)
    at initApp (entry.js:39:18)
    at entry.js:57:3
(anonymous) @ entry.js:58
Promise.catch (async)
(anonymous) @ entry.js:57
@justinwride justinwride changed the title Nuxt Starter Project no longer works when SSR is false Nuxt Starter Project no longer works when SSR is false on 3.4.0 Apr 12, 2023
@code-leen
Copy link

Having an issue with this as well ☝🏼

@danielroe
Copy link
Member

Huge apologies for this. It's already resolved in the edge channel via #20216, and I'll be releasing a patch shortly.

@danielroe danielroe closed this as not planned Won't fix, can't repro, duplicate, stale Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants