Skip to content

Error when pushing to heroku: Module build failed (from ./node_modules/postcss-loader/src/index.js), SyntaxError: Unexpected token ... #1948

Answered by adamwathan
axelclark asked this question in Help
Discussion options

You must be logged in to vote

Sounds like Heroku is using an old version of Node that doesn’t support object spread. Try configuring Heroku to use a modern version of node, like at least v10.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@axelclark
Comment options

Answer selected by axelclark
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants