DEV Community

Discussion on: Getting started with Rails 6.1, TailwindCSS JIT, Webpacker & PostCSS 8

Collapse
 
francescok profile image
Francesco Kirchhoff

One recommendation for an edit:
Following on a fresh Rails app, it looks like webpack-cli needs to be at at least 4.3.0 or it will throw an error. (TypeError: Class constructor ServeCommand cannot be invoked without 'new' etc.)

Collapse
 
storrence88 profile image
Steven Torrence

I had this same issue however upgrading webpack-cli to 4.3.0 didn't work for me. I had to upgrade to 4.7.2 in order for it to run. Not sure why?