ApeironTsuka / node-webpmux

A mostly 1:1 re-implementation of webpmux as a Node module in pure Javascript. Only thing currently missing is a command-line version.
GNU Lesser General Public License v3.0
26 stars 8 forks source link

Help Me Plis. #convertToExtended() unexpected token '(' #10

Closed Theblood closed 3 years ago

Theblood commented 3 years ago

Hi, my problem is

`/node_modules/node-webpmux/webp.js:441

convertToExtended() {

                ^

SyntaxError: Unexpected token '(' ` Someone has had this error and if possible, how did they solve it?

ApeironTsuka commented 3 years ago

What version of Node are you using? It should work fine in versions 14.x and up, and I think as far back as 12.x with a couple experimental flags.

This error comes from Node being unable to parse private class function syntax.

Nurutomo commented 3 years ago

how can i use this in node 12.x ?

ApeironTsuka commented 3 years ago

The only 12.x I have on hand is 12.11.1, and with that you can use node --harmony-private-methods.

Theblood commented 3 years ago

Hi, Guys, this problem is version the node, but after upgrade of version 12 to 14 this is resolve my problem.!