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

Cannot be used in Vite #81

Closed
1739616529 opened this issue May 12, 2022 · 4 comments
Closed

Cannot be used in Vite #81

1739616529 opened this issue May 12, 2022 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@1739616529
Copy link

I want to use it in Vite create react app. But it doesn't work

@sajadevo sajadevo added the bug Something isn't working label May 16, 2022
@sajadevo
Copy link
Collaborator

Hi @1739616529

This issue will be fixed on the future update of the product.

All the best,
Sajad

@sajadevo sajadevo self-assigned this May 21, 2022
@mahdi-jafaree
Copy link

@1739616529 After setting up a vite application with tailwind running I was facing the following error :
[vite] Internal server error: Failed to resolve entry for package "@material-tailwind/react". The package may have incorrect main/module/exports specified in its package.json: Failed to resolve entry for package "@material-tailwind/react". The package may have incorrect main/module/exports specified in its package.json.

After removing "main": "dist/index.js" from package.json everything works fine :)

@sajadevo
Copy link
Collaborator

Hi @mahdi-jafaree

Yup I know that and already working on it, it's not the only issue we need to make it totally compatible with vite.js and this will definitely happen on the next update of the product.

All the best,
Sajad

@sajadevo
Copy link
Collaborator

Hi @1739616529, @mahdi-jafaree,

The @material-tailwind/react is updated and now you can use it with vite.js as well.

All the best,
Sajad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants