Syntax error in pluggable widget creation

0
I tried pluggable widget creation using yeoman as instructed but getting syntax error in library.   newPackageJson.devDependencies["patch-package"] ||= "^6.5.0";                                                                        ^^^ SyntaxError: Unexpected token '||='
asked
1 answers
0

That operator is a pretty recent addition as logical operator within JavaScript. It could be you need to update Node.js as at least version 15 is needed to use this operator. See also: 

 

https://stackoverflow.com/questions/72522748/syntaxerror-unexpected-token

answered