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

[Bug]: cdn version with tailwind fails to load #453

Open
wmira opened this issue Mar 2, 2023 · 4 comments
Open

[Bug]: cdn version with tailwind fails to load #453

wmira opened this issue Mar 2, 2023 · 4 comments
Labels
🐞 Bug Bug or Bug fixes

Comments

@wmira
Copy link

wmira commented Mar 2, 2023

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 wmira added the 🐞 Bug Bug or Bug fixes label Mar 2, 2023
@stackblitz
Copy link

stackblitz bot commented Mar 2, 2023

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

@wmira
Copy link
Author

wmira commented Mar 2, 2023

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

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

@futuralogic
Copy link

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.

@mcDevnagh
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Bug Bug or Bug fixes
Projects
None yet
Development

No branches or pull requests

3 participants