Home > OS >  Why am I receiving the following error on minify "Unexpected identifer 'trytoCatch'?
Why am I receiving the following error on minify "Unexpected identifer 'trytoCatch'?

Time:10-21

I have made an update to my script.js and I would like to minify it using "minify" in node js. On the command line I type: minify script.js > script.min.js and I am receiving the following error: /node_modules/bin/minify.js:3 import "tryToCatch" from "try-to-catch" Unexpected identifier

Node error

CodePudding user response:

Updating node version to >=16 should work: enter image description here

  • Related