Skip to content
This repository has been 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 opened this issue Apr 14, 2023 · 9 comments

Comments

@malgamves
Copy link

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'.

@camposcristian
Copy link

Same here!

@aprilahijriyan
Copy link

+1

2 similar comments
@mainee
Copy link

mainee commented May 13, 2023

+1

@EXPITC
Copy link

EXPITC commented Aug 8, 2023

+1

@im-codebreaker
Copy link

  • 1

@camer0nluo
Copy link

+1

2 similar comments
@flupine
Copy link

flupine commented Dec 30, 2023

+1

@hardfi
Copy link

hardfi commented Feb 8, 2024

+1

@Nimi77
Copy link

Nimi77 commented Jul 8, 2024

This issue hasn't been fixed till now!

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

No branches or pull requests

10 participants