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

TypeError: Cannot call method 'ast_walker' of undefined #45

Open
helder-robalo opened this issue Mar 7, 2014 · 4 comments
Open

TypeError: Cannot call method 'ast_walker' of undefined #45

helder-robalo opened this issue Mar 7, 2014 · 4 comments

Comments

@helder-robalo
Copy link

I'm trying to run locally and I'm getting this error, the same using facebook/powereditor who uses uki.
Somebody told me I should change uglify's version, but I do rollback until [email protected] and still getting error.

<PATH>\ukijs-test\node_modules\ukijs>node express.js

<PATH>\ukijs-test\node_modules\ukijs\tools\static_require.js:36
var walker = pro.ast_walker(),
                 ^
TypeError: Cannot call method 'ast_walker' of undefined
    at Object.<anonymous> (<PATH>\ukijs-test\node_modules\ukijs\t
ools\static_require.js:36:18)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (<PATH>\node_modules\ukijs\e
xpress.js:3:12)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
@minakolta
Copy link

any solution?!, I've just installed it on CentOS with the same exact error

@helder-robalo
Copy link
Author

@minakolta Not yet, I had to change my UI stack at that time. Now I don't know if there's a solution

@mgdombrowski
Copy link

You can fix this if you roll back to uglify-js 1.3.4. You'll also need express circa v2.5:

npm uninstall uglify-js
npm install [email protected]

npm uninstall express
npm install [email protected]

@helder-robalo
Copy link
Author

@mgdombrowski Thanks Sir, that's resolved the problem

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

3 participants