my issue submitted on Author's repository
Opened this issue · 4 comments
after npm run serve
and getting this terminal error:
ERROR Failed to compile with 1 error
error in ./src/assets/tailwind.css
Syntax Error: Error: Loading PostCSS Plugin failed: Object.fromEntries is not a function
What I learned from the docs that might help others:
Using Tailwind CLI:
Tailwind CSS requires Node.js 12.13.0 or higher.
Mark Word 1 day ago
I could be wrong, but I believe Node.js is currently on version 16, so version 10 is likely going to give you some issues moving forward.
It might be worthwhile to check if there are breaking changes in Node from 10 => 12 || 10 => 16.
If you are worried that someone might run into the same issue, write it in the documentation! Someone else probably needs to be reminded to keep current on their machine.
Adam Sheaffer 1 day ago
Docker might be a good option for you as well, but the simple solution is specifying engines in your package.json https://docs.npmjs.com/cli/v7/configuring-npm/package-json#engines
Greg Lawrence 21 hours ago
I think node is the underlying code that runs npm, which reads the package.json to know what packages to install. So npm can't see node in the package.json and install it since it needs it to run in the first place. I concur it should be in a ReadMe or documentation if you think an older version would cause issues.
I think many times node itself, and npm, will alert you that an update is available and recommended.