Tahul / pinceau

🖌️ Make your <script> lighter and your <style> smarter
https://pinceau.dev
MIT License
685 stars 19 forks source link

Not working with nuxt #118

Open AndreyYolkin opened 10 months ago

AndreyYolkin commented 10 months ago

Environment


Steps to reproduce:

  1. Clone this repo
  2. Run pnpm install
  3. (Optional) put tokens.config.ts with content:
    
    import { defineTheme } from '@pinceau/theme'

export default defineTheme({ color: { primary: { 600: { initial: '#4352f4', dark: '#4352f4', }, }, }, })


4. Run `pnpm dev:nuxt`

## Expected behaviour

### Screenshot was taken from playground

<img width="456" alt="image" src="https://github.com/Tahul/pinceau/assets/11289484/f2055917-97ba-4c03-a2c8-8976b1755b76">

## Current behaviour

<img width="331" alt="image" src="https://github.com/Tahul/pinceau/assets/11289484/6bc5f64b-17c4-4f61-8652-237747b3e972">

### Devtools

<img width="889" alt="image" src="https://github.com/Tahul/pinceau/assets/11289484/98643353-3de9-4ad0-a264-a692c0e8d1ae">
fallsimply commented 10 months ago

This looks like an issue with Pinceau and vite-plugin-inspect used in Nuxt DevTools. Try disabling Nuxt Dev Tools by setting devtools: { enabled: false } in your Nuxt config to see if that fixes the issue. Then the issue can be diagnosed from there!

titocreatives commented 8 months ago

Hey, the original issue from @AndreyYolkin still persists. Also the suggested devtools: { enabled: false } change by @fallsimply does throw an Error!

pinceau_nuxt_devtools_false

Stackblitz