audreyt / ethercalc

Node.js port of Multi-user SocialCalc
https://ethercalc.net
Other
2.97k stars 538 forks source link

Error compiling ethercalc makefile #777

Open AlejandroDagobah opened 2 years ago

AlejandroDagobah commented 2 years ago

Hi when i try to compile ethercalc with Makefile , it crashes compleatly, when i create a new spreadsheet it keeps loading forever, i havent change SocialCalc at all but thats my intention.

this is the console history after i run the 'make' command:

PC@DESKTOP-7P996G3 MINGW64 ~/AppData/Roaming/npm/node_modules/ethercalc (master)
$ make
npm i --dev
npm WARN install Usage of the `--dev` option is deprecated. Use `--also=dev` instead.
npm WARN stylus-loader@3.0.2 requires a peer of stylus@>=0.52.4 but none is installed. You must install peer depend
encies yourself.
npm WARN ethercalc@0.20201228.1 No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch
":"any"} (current: {"os":"win32","arch":"x64"})

audited 701 packages in 5.773s

5 packages are looking for funding
  run `npm fund` for details

found 144 vulnerabilities (32 low, 37 moderate, 64 high, 11 critical)
  run `npm audit fix` to fix them, or `npm audit` for details
cp node_modules/socialcalc/SocialCalc.js node_modules/socialcalc/dist/SocialCalc.js || true
cp: cannot stat 'node_modules/socialcalc/SocialCalc.js': No such file or directory
node node_modules/uglify-js/bin/uglifyjs node_modules/socialcalc/dist/SocialCalc.js third-party/class-js/lib/Class.
js third-party/wikiwyg/lib/Document/Emitter.js third-party/wikiwyg/lib/Document/Emitter/HTML.js third-party/wikiwyg
/lib/Document/Parser.js third-party/wikiwyg/lib/Document/Parser/Wikitext.js static/jquery.js static/vex.combined.mi
n.js static/jquery-ui.min.js -c -m --source-map ethercalc.js.map --source-map-include-sources >> static/ethercalc.j
s
C:\Users\PC\AppData\Roaming\npm\node_modules\ethercalc\node_modules\uglify-js\tools\node.js:42
    sys.error("WARN: " + txt);
        ^

TypeError: sys.error is not a function
    at Function.UglifyJS.AST_Node.warn_function (C:\Users\PC\AppData\Roaming\npm\node_modules\ethercalc\no
de_modules\uglify-js\tools\node.js:42:9)
    at Function.AST_Node.warn (C:\Users\PC\AppData\Roaming\npm\node_modules\ethercalc\node_modules\ugl
ify-js\lib\ast.js:110:18)
    at Compressor.warn (C:\Users\PC\AppData\Roaming\npm\node_modules\ethercalc\node_modules\uglify-js
[24m\lib\compress.js:87:27)
    at TreeTransformer.before (C:\Users\PC\AppData\Roaming\npm\node_modules\ethercalc\node_modules\ugl
ify-js\lib\compress.js:1061:48)
    at AST_Function.transform (C:\Users\PC\AppData\Roaming\npm\node_modules\ethercalc\node_modules\ugl
ify-js\lib\transform.js:61:35)
    at AST_Function.drop_unused (C:\Users\PC\AppData\Roaming\npm\node_modules\ethercalc\node_modules\u
glify-js\lib\compress.js:1169:18)
    at Compressor.before (C:\Users\PC\AppData\Roaming\npm\node_modules\ethercalc\node_modules\uglify-j
s\lib\compress.js:99:18)
    at AST_Function.transform (C:\Users\PC\AppData\Roaming\npm\node_modules\ethercalc\node_modules\ugl
ify-js\lib\transform.js:61:35)
    at C:\Users\PC\AppData\Roaming\npm\node_modules\ethercalc\node_modules\uglify-js\lib\transfor
m.js:197:33
    at Compressor.before (C:\Users\PC\AppData\Roaming\npm\node_modules\ethercalc\node_modules\uglify-j
s\lib\compress.js:96:9)
Makefile:56: recipe for target 'static/ethercalc.js' failed
mingw32-make: *** [static/ethercalc.js] Error 1

thanks for the help

eddyparkinson commented 2 years ago

Looks like a problem with uglify-js - Maybe a version issue. I would try using a different version.

This looks like the error:

C:\Users\PC\AppData\Roaming\npm\node_modules\ethercalc\node_modules\uglify-js\tools\node.js:42 sys.error("WARN: " + txt);

TypeError: sys.error is not a function

hope this helps.