Comments (9)
Hello,
I haven't modified anything, I just wanted to test your template as I am learning React and TailWind 👍
So the only commands I have used are :
- npx create-react-app my-project --template tailwindcss-starter
- cd myproject
- npm install
- npm run build-css:develop
Yes package version 1.2.0.
The Node version I have is 12.19.0
I have tried to create another project, same problem.
from cra-template-tailwindcss-starter.
I'm here because I've seen your post on dev.to yesterday :)
from cra-template-tailwindcss-starter.
I tried removing and reinstall it with npm, same problem.
Then I have installed the modules with yarn, and build the CSS with yarn, it works !
But I don't know what problem it could be by using npm.
from cra-template-tailwindcss-starter.
Hi! Mmm... interesting. It's something related to PostCSS, do you modified the postcss.config.js
file? I already test other time the package and still works.
Does this error occur in all the projects you generate? are you using version 1.2.0 of the package?
~\Desktop\myproject master
❯ yarn build-css:develop
yarn run v1.22.5
$ tailwindcss build tailwind.css -o src/styles.css
tailwindcss 2.0.1
� Building: tailwind.css
✅ Finished in 2.39 s
� Size: 3.97MB
� Saved to src/styles.css
Done in 3.26s.
~\Desktop\myproject master
❯
Please, put a screenshot of your package.json
and you postcss.config.js
. Or if you have a repo with your project, put the link so I can help you!
from cra-template-tailwindcss-starter.
There is a discussion with the same errror message here : vercel/next.js#17236
It seems to be related to postcss version.
from cra-template-tailwindcss-starter.
I see, maybe it's a problem with autoprefixer. It is very rare since the problem does not occur to me (and I have already tried on several computers). However, I'm going to update a few things in the template and see if that fixes the problem!
from cra-template-tailwindcss-starter.
Maybe it is due to the fact that I use npm instead of yarn to generate the styles.css file ?
from cra-template-tailwindcss-starter.
Maybe it is due to the fact that I use npm instead of yarn to generate the styles.css file ?
I don't think that is the problem, but you can try.
Also, try doing the following:
- Remove your
node_modules
folder - Install all of the dependencies of the project
npm install # or yarn install
- then run the build CSS script
npm run build-css:develop # or yarn build-css:develop
If it doesn't work then wait for me as I try to fix the problem. In the same way, you can try to solve it and send a pull request if you find the source of the error!
from cra-template-tailwindcss-starter.
Great that it worked with Yarn. I will continue looking for what the problem is. Enjoy your learning!
from cra-template-tailwindcss-starter.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cra-template-tailwindcss-starter.