Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Uglify errors with jarallax #310

Closed
zimonline opened this issue Jun 12, 2018 · 5 comments
Closed

Uglify errors with jarallax #310

zimonline opened this issue Jun 12, 2018 · 5 comments

Comments

@zimonline
Copy link

I am getting the following error when I try to uglify the following.
I don't think the problem is with jarallax as code works fine on its own.

Contents of app.js

import {
    jarallax,
    jarallaxElement,
    jarallaxVideo
} from 'jarallax';

Error

ERROR in /js/app.js from UglifyJs
TypeError: sym.definition is not a function
    at may_modify (eval at <anonymous> (/redacted/path/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:8931:31)
    at TreeTransformer.abort [as before] (eval at <anonymous> (/redacted/path/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:8541:74)
    at AST_VarDef.eval [as transform] (eval at <anonymous> (/redacted/path/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:4570:35)
    at eval (eval at <anonymous> (/redacted/path/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:4586:25)
    at doit (eval at <anonymous> (/redacted/path/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:130:23)
    at MAP (eval at <anonymous> (/redacted/path/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:156:52)
    at do_list (eval at <anonymous> (/redacted/path/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:4585:16)
    at eval (eval at <anonymous> (/redacted/path/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:4664:28)
    at AST_Const.eval [as transform] (eval at <anonymous> (/redacted/path/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:4573:17)
    at collapse (eval at <anonymous> (/redacted/path/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:8617:39)
    at tighten_body (eval at <anonymous> (/redacted/path/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:8429:17)
    at eval (eval at <anonymous> (/redacted/path/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:10529:9)
    at AST_Accessor.eval [as optimize] (eval at <anonymous> (/redacted/path/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:7682:23)
    at Compressor.before (eval at <anonymous> (/redacted/path/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:7665:24)
    at AST_Accessor.eval [as transform] (eval at <anonymous> (/redacted/path/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:4570:35)
    at eval (eval at <anonymous> (/redacted/path/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:4739:33)
    at Compressor.before (eval at <anonymous> (/redacted/path/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:7660:9)
    at AST_ConciseMethod.eval [as transform] (eval at <anonymous> (/redacted/path/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:4570:35)
    at eval (eval at <anonymous> (/redacted/path/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:4586:25)
    at doit (eval at <anonymous> (/redacted/path/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:130:23)
    at MAP (eval at <anonymous> (/redacted/path/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:156:52)
    at do_list (eval at <anonymous> (/redacted/path/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:4585:16)
    at eval (eval at <anonymous> (/redacted/path/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:4745:27)
    at Compressor.before (eval at <anonymous> (/redacted/path/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:7660:9)
    at AST_DefClass.eval [as transform] (eval at <anonymous> (/redacted/path/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:4570:35)
    at eval (eval at <anonymous> (/redacted/path/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:4586:25)
    at doit (eval at <anonymous> (/redacted/path/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:130:23)
    at MAP (eval at <anonymous> (/redacted/path/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:156:52)
    at do_list (eval at <anonymous> (/redacted/path/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:4585:16)
    at eval (eval at <anonymous> (/redacted/path/node_modules/uglify-es/tools/node.js:21:1), <anonymous>:4682:25)
error An unexpected error occurred: "Command failed.
Exit code: 2
Command: sh
@kzc
Copy link

kzc commented Jun 13, 2018

Resolved by #296

@kzc
Copy link

kzc commented Jun 14, 2018

@alexander-akait
Copy link
Member

Close in favor #264

@kzc
Copy link

kzc commented Jun 15, 2018

@evilebottnawi This bug has nothing to do with inline and is not addressed by #264.

It is resolved by replacing uglify-es with terser in #296.

@alexander-akait
Copy link
Member

Close in favor #298

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

No branches or pull requests

3 participants