Skip to content

Package subpath './lib/util/flattenColorPalette.js' is not defined by "exports" in "package.json" #46

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

Open
lid00rs opened this issue Feb 15, 2025 · 4 comments

Comments

@lid00rs
Copy link

lid00rs commented Feb 15, 2025

Hello,
I'm using tailwindcss version 4.0.6 and this exact issue seemed to have been fixed about a week ago, but i am still experiencing it.
here is my vite.config.js file:

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
import tailwindcssMotion from "tailwindcss-motion"


// https://vite.dev/config/
export default defineConfig({
  plugins: [react(),tailwindcss(),tailwindcssMotion()],
})

My version of tailwindcss-motion is 1.1.0

@clayaaz
Copy link

clayaaz commented Feb 18, 2025

go to your package.json under node_modules/tailwindcss and change

./lib/util/flattenColorPalette": {
     "require": "./dist/flatten-color-palette.js",
     "import": "./dist/flatten-color-palette.mjs"
   },`

to

./lib/util/flattenColorPalette.js": {
      "require": "./dist/flatten-color-palette.js",
      "import": "./dist/flatten-color-palette.mjs"
    },

@haexhub
Copy link

haexhub commented Feb 21, 2025

that's just a workaround. I would prefer a proper solution aka fixed package

@clayaaz
Copy link

clayaaz commented Feb 22, 2025

that's just a workaround. I would prefer a proper solution aka fixed package

apparently they fixed it in tailwind 4.0.7

@haexhub
Copy link

haexhub commented Feb 24, 2025

thanks for the info.
So that means, that everyone who is using/stucked with the 3.* version has bad luck?!

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

No branches or pull requests

3 participants