-
Notifications
You must be signed in to change notification settings - Fork 145
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 read property '2' of undefined #6
Comments
Your |
Thanks, I made some progress. console.log(ast.body) output:
So I ended up with the following config:
With my bundle, I get the following output with still an error:
|
Entrypoint should be the id of the module that is at the top of the module tree. See https://github.com/1egoman/debundle/blob/master/DOCS.md#entrypoint-required-for-webpack-bundles In the bundle here, I believe your entrypoint is the module with the id of Try something like this: {
"type": "browserify",
"knownPaths": {},
"entryPoint": 1,
"moduleAst": ["body", 0, "expression", "argument", "arguments", 0]
} Also, the docs and error messages for this project could be improved. If you have any suggestions, I'd appreciate if you could either leave an issue or contribute better versions. Unfortunately I don't have time right now to devote to this project. 😦 |
No problem. With your config it works correctly. Anyway I greatly appreciate your help, thanks again. |
@1egoman
Now (same setup as in #5), when I run the command:
I get:
The text was updated successfully, but these errors were encountered: