Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error compiling ethercalc makefile #777

Open
AlejandroDagobah opened this issue Jan 19, 2022 · 1 comment
Open

Error compiling ethercalc makefile #777

AlejandroDagobah opened this issue Jan 19, 2022 · 1 comment

Comments

@AlejandroDagobah
Copy link

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 [email protected] requires a peer of stylus@>=0.52.4 but none is installed. You must install peer depend
encies yourself.
npm WARN [email protected] No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: 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
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants