twind icon indicating copy to clipboard operation
twind copied to clipboard

[Bug]: cdn version with tailwind fails to load

Open wmira opened this issue 2 years ago • 5 comments

Reproduction

Stackblitz Repo Here:

https://stackblitz.com/edit/react-ts-wtkuuo

Describe the bug

I've load twind cdn as per the documentation. But seems to fail loading with

VM376 preset-tailwind@1:34 Uncaught TypeError: Cannot read properties of undefined (reading 'match')

If you press F12 the stack is on the console

Severity

blocking all usage of Twind

System Info

Stackblitz Env but same across.

Additional Information

No response

wmira avatar Mar 02 '23 12:03 wmira

Also, without any preset, the CDN version still fails with:

index.ts:18 Uncaught TypeError: Cannot read properties of undefined (reading 'match')

wmira avatar Mar 02 '23 12:03 wmira

Any research or further info about this issue? It's a blocker for using this in browser. I have a project that must be in-browser without a build step.

futuralogic avatar Aug 19 '23 04:08 futuralogic

if a fix is not in the works, can the documentation change from instructing users to use broken code in the optional step 3 https://twind.style/installation#browser-usage?

mcDevnagh avatar Jan 01 '24 23:01 mcDevnagh