PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, October 21, 2022

[FIXED] Why am I receiving the following error on minify "Unexpected identifer 'trytoCatch'?

 October 21, 2022     javascript, node.js, npm     No comments   

Issue

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


Solution

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



Answered By - Yasio
Answer Checked By - Pedro (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing