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

with-tailwindcss-emotion doesn't work #25151

Open
PabloSzx opened this issue May 15, 2021 · 3 comments
Open

with-tailwindcss-emotion doesn't work #25151

PabloSzx opened this issue May 15, 2021 · 3 comments
Labels
bug Issue was opened via the bug report template. examples Issue/PR related to examples

Comments

@PabloSzx
Copy link
Contributor

PabloSzx commented May 15, 2021

related pr: #23912

What version of Next.js are you using?

10.2.0

What version of Node.js are you using?

14.17.0

What browser are you using?

Error happens before any browser is used

What operating system are you using?

Windows

How are you deploying your application?

next dev & next start

Describe the Bug

The included example of Tailwind CSS with Emotion.js doesn't work

image

error - ./pages/_app.js
TypeError: C:\Users\X\with-tailwindcss-emotion-app\pages_app.js: matchUtilities is not a function
at Array.forEach ()
Error: Failed to load /500

Expected Behavior

to work, neither next build or next dev work

To Reproduce

Follow the example in the repo:

https://github.com/vercel/next.js/tree/canary/examples/with-tailwindcss-emotion

yarn create next-app --example with-tailwindcss-emotion with-tailwindcss-emotion-app

@PabloSzx PabloSzx added the bug Issue was opened via the bug report template. label May 15, 2021
@sunopar
Copy link

sunopar commented May 15, 2021

The issue causing this probole is tailwindlabs/tailwindcss#4050 Arthie/xwind#30
I think we can remove xwind until if fix the probolem

@leohxj
Copy link

leohxj commented Jun 4, 2021

why not try twin.macro?

@adamk33n3r
Copy link

I'm new to react and css-in-js in general, what is the benefit of using libraries like emotion or twin.macro instead of just doing className='container mx-auto'?

@jankaifer jankaifer added the examples Issue/PR related to examples label Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue was opened via the bug report template. examples Issue/PR related to examples
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants