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

TypeError: (0 , _twrnc.create) is not a function #330

Open
duc-digiex opened this issue Dec 26, 2024 · 2 comments
Open

TypeError: (0 , _twrnc.create) is not a function #330

duc-digiex opened this issue Dec 26, 2024 · 2 comments

Comments

@duc-digiex
Copy link

Screenshot 2024-12-26 at 07 10 45
import {create} from 'twrnc';

const tw = create(require('./tailwind.config'));
export default tw;

I cannot setup jest, everyone have any solution

@jaredh159
Copy link
Owner

jest is tricky to configure, i've found vitest to work with less fiddling. this looks like some sort of babel/transpilation issue, i can't say off the top of my head what it is, but i think it's not an issue in the twrnc library

@DavidScicluna
Copy link

Hi there, I encountered a similar issue and can confirm that it’s not related to the ‘twrnc’ plugin but to the Tailwind CSS itself. Try commenting out the plugins key in ‘tailwind.config.js’. This should resolve the problem.

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