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

Unstyled Mode: Tailwind - only refers to a type #4280

Closed
roos-robert opened this issue Aug 16, 2023 · 0 comments
Closed

Unstyled Mode: Tailwind - only refers to a type #4280

roos-robert opened this issue Aug 16, 2023 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@roos-robert
Copy link

Describe the bug

Hi!

Looking forward to trying out the unstyled mode with Tailwind, hitting a issue though following the documentation over at: https://primevue.org/tailwind

After adding the following in my main.ts

import {createApp} from "vue";
import PrimeVue from "primevue/config";
import Tailwind from "primevue/passthrough/tailwind";

const app = createApp(App);

app.use(PrimeVue, { unstyled: true, pt: Tailwind });

I get the error "Tailwind only refers to a type, but is being used as a value here" on this line app.use(PrimeVue, { unstyled: true, pt: Tailwind });

I've seen in the Discord that multiple people are reporting this issue, so creating this bug report for all of us. :)

Reproducer

PrimeVue version

3.32.0

Vue version

3.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

  1. Setup new PrimeVue project following: https://primevue.org/installation/
  2. Install Tailwind following: https://tailwindcss.com/docs/guides/vite#vue
  3. Add the following to the main.ts:
import {createApp} from "vue";
import PrimeVue from "primevue/config";
import Tailwind from "primevue/passthrough/tailwind";

const app = createApp(App);

app.use(PrimeVue, { unstyled: true, pt: Tailwind });

Expected behavior

To not get this error.

@roos-robert roos-robert added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Aug 16, 2023
@mertsincan mertsincan self-assigned this Aug 17, 2023
@mertsincan mertsincan added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Aug 17, 2023
@mertsincan mertsincan added this to the 3.32.1 milestone Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants