Skip to content

Replace mode: spa with ssr: false in nuxt.config.js #159

@egillespie

Description

@egillespie

Describe the bug

From the Nuxt output in the terminal when running npm run dev:

 WARN  mode option is deprecated. Please use ssr: true for universal mode or ssr: false for spa mode and remove mode from nuxt.config

To Fix

The www project uses some features that do not work with SSR. The solution here is to replace mode: spa, with ssr: false, in nuxt.config.js.

Afterwards, rerun npm run dev to make sure the warning in the terminal goes away (and that the site still runs).

Metadata

Metadata

Assignees

No one assigned

    Labels

    beginner-friendlyAn issue that is believed to be beginner-friendlybug

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions