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

tailwindcss example crashes when upgrading to tailwind 3.x #36

Open
camstuart opened this issue Dec 22, 2022 · 1 comment
Open

tailwindcss example crashes when upgrading to tailwind 3.x #36

camstuart opened this issue Dec 22, 2022 · 1 comment

Comments

@camstuart
Copy link

Hello and thankyou for the example: https://github.com/meteor/examples/tree/main/tailwindcss

It works perfectly well, however when I run the instructions to repeat this, I get

"tailwindcss": "^3.2.4"

Which throws the following error:

Errors prevented startup:

While minifying app stylesheet:
app/client/main.css: PostCSS received undefined instead of CSS string

Your application has errors. Waiting for file change.

However, if i use:

  "dependencies": {
    "@babel/runtime": "^7.17.9",
    "autoprefixer": "^10.4.13",
    "jquery": "^3.6.0",
    "meteor-node-stubs": "^1.2.1",
    "postcss": "^8.4.18",
    "postcss-load-config": "^3.0.1",
    "tailwindcss": "^2.0.3"
  },

Then everything is is ok.
Are you able to share what combination of packages and versions will work with tailwindcss 3.x?

Thanks

@fredmaiaarantes
Copy link
Member

fredmaiaarantes commented Dec 22, 2022

Hey @camstuart. You can easily generate a Meteor.js + React + Tailwind app by using the command below:
meteor create myproject --tailwind

There is a step-by-step on Taiwind website: https://tailwindcss.com/docs/guides/meteor
This blog post may help you as well: https://blog.meteor.com/meteor-js-with-react-and-tailwind-css-3-3e878645451e

And you can also check these two example projects (which we should include on this repo):
https://github.com/fredmaiaarantes/meteorjs-template
https://github.com/quavedev/meteor-template

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

No branches or pull requests

2 participants