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

Problem working with "material-tailwind" library in React #74

Open
AbdullahAshraff opened this issue Sep 14, 2024 · 0 comments
Open

Problem working with "material-tailwind" library in React #74

AbdullahAshraff opened this issue Sep 14, 2024 · 0 comments

Comments

@AbdullahAshraff
Copy link

AbdullahAshraff commented Sep 14, 2024

I am working on vite project with react

I used some components from external library which is material-tailwind

the file tw-class-list.json doesn't have the classes the extrnal library use. Therefore, after build the components from the external library still have the same classes of tailwind and the browser doesn't recognize these classes

this is the package.json

{
  "name": "my-portfolio",
  "private": true,
  "version": "0.0.0",
  "type": "module",
  "scripts": {
    "prepare": "tw-patch install",
    "dev": "vite --host",
    "build": "vite build",
    "lint": "eslint .",
    "preview": "vite preview"
  },
  "dependencies": {
    "@material-tailwind/react": "^2.1.10",
    "framer-motion": "^11.5.4",
    "react": "^18.3.1",
    "react-dom": "^18.3.1",
    "react-router-dom": "^6.26.2",
    "vite-plugin-svgr": "^4.2.0"
  },
  "devDependencies": {
    "@eslint/js": "^9.9.0",
    "@types/react": "^18.3.3",
    "@types/react-dom": "^18.3.0",
    "@vitejs/plugin-react": "^4.3.1",
    "autoprefixer": "^10.4.20",
    "eslint": "^9.9.0",
    "eslint-plugin-react": "^7.35.0",
    "eslint-plugin-react-hooks": "^5.1.0-rc.0",
    "eslint-plugin-react-refresh": "^0.4.9",
    "globals": "^15.9.0",
    "postcss": "^8.4.45",
    "tailwindcss": "^3.4.10",
    "tailwindcss-patch": "^4.0.0",
    "unplugin-tailwindcss-mangle": "^3.0.1",
    "vite": "^5.4.1"
  }
}```
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

1 participant