-
Notifications
You must be signed in to change notification settings - Fork 294
Cannot read property '700' of undefined #214
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
Comments
I got the exact same error and the issue was a version discrepancy. Can you run |
Aha - I will say it magically started working not long after this. I wish I could explain how or why. In any case,
|
i got the same issue , how do you fixed it ? |
I got the same issue. from one day to the other I got the error:
|
for me, it fixed when I change the |
I don't think this happen in 0.5.0-alpha.2 because the tailwind 3 color palette is included in 0.5.0-alpha.3 (see #217) |
Thanks for the quick reply. Sry i was not specific enough with my first comment. updating to tailwind 3.0.0-alpha.2 To be more specific:
|
fixed by using: |
Closing as this is definitely due to version mismatch — using |
I know this is closed, but just a heads up that I ran into this on a fresh repo as well today. It also pops up in VSCode when I load the Tailwind CSS Intellisense plugin (updated 2 days ago). Using yarn 3.1.1:
In my application and also in VSCode (from Tailwind CSS Intellisense) I get this:
I think I tracked it to my Tailwind UI dep. yarn.lock
I was able to workaround by setting the resolutions to typography 0.5.0 - but 🤷🏽♂️ |
Whiiiiiiichhhhhh I now realize may have been incorrectly copied in from an old project, and probably should have been removed 1 whole version ago. 🤦🏽♂️ |
I had this 'cannot read property' problem, just tried installing both tailwind and typography plugin @next and now getting an "unclosed bracket" error when I try to add the prose class... edit: actually this only happens when trying to add it in an @apply rule |
exactly what happened to us as well. A repo that was working yesterday stopped working today. We use a lock file so our lib version are locked, but the app still started to fail, which should not happen. |
Remove the https://tailwindui.com/changes-for-v2#remove-tailwindcss-ui-then-update-tailwindcss |
Facing the same issue with install typography plugin. I'm using an old version 2.x I have also tried upgrading it to Edit: apparently these colors slate, zinc, neutral and stone are not present when importing from if you comment those colors configs it works without any issues |
@tailwindcss/typography 0.5.0 is for v3 and up, if you are using v2 make sure you use @tailwindcss/typography@0.4.* 👍 |
Thanks Adam, using @tailwindcss/typography@0.4.1 sorted this issue out for me! |
Removing |
Works for me! |
it worked for me |
Uh oh!
There was an error while loading. Please reload this page.
What version of @tailwindcss/typography are you using?
v0.5.0-alpha.2
What version of Node.js are you using?
v16.11.1
What browser are you using?
Chrome
What operating system are you using?
macOS
Reproduction repository
https://github.com/alexmanzo/alex
Describe your issue
I just set up this repo, so it's basically a blank slate. I installed both
tailwindcss@next
and@tailwindcss/typography@next
. Attempting to run the project results in the following error:That particular line in the
styles.js
is:I haven't yet tried overriding the config or anything, but wanted to flag it since these versions are still in alpha! I'd love to be able to use the newest versions as I work on this... happy to try fixes/workarounds!
Edit to add
tailwind.config.cjs
The text was updated successfully, but these errors were encountered: