Git Product home page Git Product logo

Comments (10)

zernonia avatar zernonia commented on May 19, 2024 3

@selemondev this should be due to Nuxt3 autoImport feature, which might messed up the imports.

from shadcn-vue.

zernonia avatar zernonia commented on May 19, 2024 1

The new issue seems to be related to #70

from shadcn-vue.

zernonia avatar zernonia commented on May 19, 2024 1

Awesome @selemondev ! Could you help contributing by adding that text in Nuxt installation section? 😁

from shadcn-vue.

sebastiaanluca avatar sebastiaanluca commented on May 19, 2024

After the button has been successfully installed, it maps to the wrong path: @/lib/registry/default/ui/avatar and then I correct it to: @/components/ui/avatar

I've added shadcn-vue in an existing Vite + Tailwind project, and successfully set up components.json and all steps outlined in the installation guide. However when doing npx shadcn-vue@latest add select or any other, it adds the Select component but completely ignores the configured components.json in the project root dir.

E.g. tailwind.cssVariables would be set to false, but the added component and its files would use CSS variables instead of Tailwind classes. Same for the path to the helpers import and any other configured setting.

from shadcn-vue.

zernonia avatar zernonia commented on May 19, 2024

@selemondev could you check if this issue still happening? 😁

from shadcn-vue.

selemondev avatar selemondev commented on May 19, 2024

@zernonia I still get the same error as above but this time in the terminal I get the following error: ERROR Cannot read properties of undefined (reading 'sys') (x4) and in the browser:

`[vite-node] [plugin:vite:vue] [VITE_ERROR] /components/ui/avatar/AvatarImage.vue

<script setup lang="ts"> import { AvatarImage, type AvatarImageProps } from 'radix-vue' const props = defineProps() </script> `

from shadcn-vue.

selemondev avatar selemondev commented on May 19, 2024

Thanks, it worked. Can we reference that in the docs as a temporary solution until it's fixed so that devs might not have to wonder what's wrong?

from shadcn-vue.

selemondev avatar selemondev commented on May 19, 2024

Sure ✨

from shadcn-vue.

zernonia avatar zernonia commented on May 19, 2024

Can I close this @selemondev and we will track the Nuxt3 issue you mentioned above here? 😁

from shadcn-vue.

selemondev avatar selemondev commented on May 19, 2024

OK.

from shadcn-vue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.