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

Is this plugin compatible for ES6 or Typescript support ? #1

Open
adiramardiani opened this issue May 21, 2024 · 3 comments · May be fixed by #6
Open

Is this plugin compatible for ES6 or Typescript support ? #1

adiramardiani opened this issue May 21, 2024 · 3 comments · May be fixed by #6

Comments

@adiramardiani
Copy link

First congrats for release this plugin.

I don't know this is ES6 (because this is project requirement), nuxt or typescript issue, but I try to use your plugin on latest nuxt release
I'm using nuxt-tailwind module, and the config on tailwind.config.ts, here my script :

import type { Config } from 'tailwindcss';
import primeUi from 'tailwindcss-primeui';

export default <Partial<Config>>{
  content: ['./shareds/**/*.{js,vue,ts}', 'presets/**/*.{js,vue,ts}'],
  plugins: [primeUi]
};

But give me error
image

Is my implementation is wrong ?

@hywax
Copy link

hywax commented Jun 1, 2024

There are currently no declared types in this package. To remove the error, I do the following:

import type { Config } from 'tailwindcss'
// @ts-expect-error no declared types at this time
import primeui from 'tailwindcss-primeui'

export default <Partial<Config>>{
  darkMode: 'class',
  corePlugins: {
    preflight: false,
  },
  plugins: [primeui],
}

Solution is temporary, when the types show up, then I'll just delete the comment

@BenJackGill
Copy link

BenJackGill commented Jul 29, 2024

+1 for declared types please.

I know V4 and this plugin is new, but PrimeVue advertises itself as having Top-notch support for Typescript with types and tooling assistance so having declared types is very much needed to stay in line with that.

jogerj referenced this issue in jogerj/tailwindcss-primeui Sep 18, 2024
jogerj referenced this issue in jogerj/tailwindcss-primeui Sep 18, 2024
@jogerj jogerj linked a pull request Sep 18, 2024 that will close this issue
@cagataycivici
Copy link
Member

cagataycivici commented Jan 12, 2025

Planned to be rewritten with typescript in 0.5.0. This plugin started as a POC for PrimeFlex replacement and now got the green light to be a top level Prime project.

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

Successfully merging a pull request may close this issue.

4 participants