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.

Error: Cannot find module 'autoprefixer'

See original GitHub issue

After cloning the repository and runing npm install and then npm run dev I get the following:

ERROR in ./~/css-loader?module&localIdentName=[name]__[local]___[hash:base64:5]!./~/postcss-loader!./app/css/main.css
Module build failed: Error: Cannot find module 'autoprefixer'
    at Function.Module._resolveFilename (module.js:337:15)
    at Function.Module._load (module.js:287:25)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.postCSSConfig (/Users/jon/Sites/react-webpack-node/webpack/webpack.config.dev-client.js:44:5)
    at Object.module.exports (/Users/jon/Sites/react-webpack-node/node_modules/postcss-loader/index.js:28:27)
 @ ./app/css/main.css 4:14-179 13:2-17:4 14:20-185

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:17 (6 by maintainers)

github_iconTop GitHub Comments

25reactions
choonkendingcommented, Mar 16, 2016

@jonjamz The issue is that we removed the dependency npm install autoprefixer.

That should fix it. I’ll push a hotfix when I get the chance. Thanks for raising this issue.

14reactions
puranik3commented, Dec 5, 2017

+1 Running npm install autoprefixer solved the same issue for me too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

getting "Cannot find module 'autoprefixer'" error during setup ...
I've checked that I have autoprefixer in my node_modules folder and tried reinstalling it, but I get the same error. In my package.json...
Read more >
Solved- “Cannot find module 'autoprefixer'” error tailwindcss
This error can be fixed easily if you just uninstall and reinstall the dependencies. ... It should work and it will create the...
Read more >
autoprefixer - npm
PostCSS plugin to parse CSS and add vendor prefixes to CSS rules using values from Can I Use. It is recommended by Google...
Read more >
Error: Loading PostCSS Plugin failed: Cannot find module &#3
Expected behavior. I expected it to work. Actual behavior. Failed to compile. ./node_modules/mdbvue/lib/css/mdb.min.css (.
Read more >
Cannot find module 'autoprefixer' - support - HUGO
Hello guys,. I'm new here and I'm trying to make my 1st website with Hugo. So, I've finished all the basical steps, now...
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