Closed su-action closed 4 years ago
I seem to run into the same issue. As above stacktrace indicates, this is within the the api, and after the code fragment has been sent to the AST parser (acorn), and while attempting to run through the code fragments. The expected node is supposed to be a root node for either function, or the main program, hence the node-type is tested. However node is 'undefined' so node.type fails. Particularly issue starts here:
this.root = this.ast = plugin( 'parse', null, source, options );
which returns undefined because pluginManager
is not defined, as is required:
plugin = function( topKey, subKey, ...args ) {
if ( pluginManager ) return pluginManager.callback( topKey, subKey, ...args );
};
Did you find the solution to run it? I just ran to the exact same thing
My demo code are as follows:
js_test.js:
console error message: