Closed MManke188 closed 11 months ago
hmmm.... i'm not able to reproduce. was fixing something just now, and added these tests, which pass just fine for me:
Just did a minimal example where it produces the same error:
Starting to have an idea of what's going wrong.
At the end of the test the following expectation fails:
expect(tw`md:custom`).toEqual({ marginTop: 4, color: `#fff` });
ahh, yes, i see now, it only doesn't work with custom utilities defined as strings. i looked at the implementation, and I can see why it's not working, but the fix is not super straightforward. i'll try to figure something out though, before too long. until then, if you're able to define your custom utilities in the object style, they should work.
fixed in 3.6.7
thanks for bringing this to my attention.
If I do a simple test utility (test: 'border-2 border-red-500'):
It also produces the
`test` unknown or invalid utility
error