question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Postcss not working any more in my projects.

See original GitHub issue

Is this a bug report?

Yes, I think so.

Did you try recovering your dependencies?

Yes. I install create-react-app twice with the same result.

Which terms did you search for in User Guide?

I didn’t.

Environment

System: OS: Windows 10 CPU: x64 Intel® Core™ i5-3320M CPU @ 2.60GHz

Binaries: Yarn: 1.7.0 - C:\Users\Hossein\AppData\Roaming\npm\yarn.CMD npm: 5.6.0 - C:\Program Files\nodejs\npm.CMD

Browsers: Edge: 42.17134.1.0 Internet Explorer: 11.0.17134.1 Chrome: 71.0.3578.98

npmPackages: react: ^16.7.0 react-dom: ^16.7.0 react-scripts: 2.1.3

npmGlobalPackages: create-react-app: Not Found

Steps to Reproduce

  1. I install create-react-app with npx create-react-app app-name command.
  2. Then, run the project with yarn start command.
  3. But, postcss not working and my CSS styles are the same like in my styles.css file. I have this problem before and I thought it’s related to my project. So I install it again with the same result.

Expected Behavior

Like your example in this link:

.App {
  display: flex;
  flex-direction: row;
  align-items: center;
}

becomes this:

.App {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

But in my project, I haven’t expected result.

Actual Behavior

This is my code: capture-1

And this is my reslut that I expecte something else: capture-2

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Jan 12, 2019

You’re very welcome @hrahimi270! 🎉 If there is any other problem except from the one stated, please mention it so someone can help, otherwise I do believe the issue should be closed so we don’t alert people.

Have fun!

0reactions
Timercommented, Jan 12, 2019

You can customize your target support browsers by adjusting the browserslist key in package.json according to the Browserslist specification.

If you need to support older browsers, you need to define them. Try adding IE9 to the list if you need to support back that far.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: PostCSS plugin tailwindcss requires PostCSS 8
You're integrating Tailwind with a tool that relies on an older version of PostCSS.
Read more >
Install Tailwind CSS using PostCSS
Installing Tailwind CSS as a PostCSS plugin is the most seamless way to integrate it with build tools like webpack, Rollup, Vite, and...
Read more >
Install Tailwind CSS v3 - CDN vs CLI vs PostCSS - YouTube
... working with this latest version of Tailwind CSS in simple projects that don't use any of the frameworks listed in the documentation....
Read more >
Building Tailwind with PostCSS - YouTube
Want more ? Explore the library at https://codecourse.comIf Tailwind doesn't support an integration for where you want to use it, build with ...
Read more >
postcss/postcss - Gitter
My configuration is only working on the child paths, it is not working on the css/ path. 7 replies.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found