Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Error while requiring module @chakra-ui/nuxt: TypeError: Vue.observable is not a function #560

Open
@malgamves

Description

@malgamves

Describe the bug
I have a fresh install of Chakra UI on a Nuxt 3.4 app and when i add @chakra-ui/next to the nuxt.config.ts i get the error Error while requiring module @chakra-ui/nuxt: TypeError: Vue.observable is not a function

To Reproduce
Steps to reproduce the behavior:

  1. Create a new Nuxt.js project
  2. Install Chakra UI by following instructions here
  3. Create layouts/default.vue and add an <h1> hello </h1>
  4. Delete <NuxtWelcome /> in app.vue

Expected behavior
The page should display hello, do i can go on and add chakra layout components

Screenshots
Screenshot 2023-04-14 at 12 33 12

Desktop (please complete the following information):

  • OS: MacOS 13.2.1
  • Browser: Chrome
  • Version: 112

Additional context
There are also somw TypeScript errors when I add this snippet

chakra: {
    extendTheme: {
      colors: {
        brand: { /* ... */ }
      }
    }
  }

I get an error message that says Object literal may only specify known properties, and 'chakra' does not exist on type 'Nuxt Config'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions