You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Emit a sensible error that could help me fix my code? Support emitting debugger; in an if statement?
Actual Behavior
Fatal error from using 'debugger;' statement, and it's very unclear where the error has occured; the error only reports information about rollup's stack, and not exactly what it's having an issue with.'
Example output
tst.js → stdout...
[!] TypeError: this.context.nodeConstructors[esTreeNode.consequent.type] is not a constructor
TypeError: this.context.nodeConstructors[esTreeNode.consequent.type] is not a constructor
at IfStatement.parseNode (C:\Users\d3x0r\AppData\Roaming\npm\node_modules\rollup\dist\shared\rollup.js:7310:27)
at new NodeBase (C:\Users\d3x0r\AppData\Roaming\npm\node_modules\rollup\dist\shared\rollup.js:2823:14)
at new IfStatement (C:\Users\d3x0r\AppData\Roaming\npm\node_modules\rollup\dist\shared\rollup.js:7264:9)
at Program$1.parseNode (C:\Users\d3x0r\AppData\Roaming\npm\node_modules\rollup\dist\shared\rollup.js:2937:27)
at new NodeBase (C:\Users\d3x0r\AppData\Roaming\npm\node_modules\rollup\dist\shared\rollup.js:2823:14)
at new Program$1 (C:\Users\d3x0r\AppData\Roaming\npm\node_modules\rollup\dist\shared\rollup.js:8243:9)
at Module.setSource (C:\Users\d3x0r\AppData\Roaming\npm\node_modules\rollup\dist\shared\rollup.js:10075:20)
at ModuleLoader.addModuleSource (C:\Users\d3x0r\AppData\Roaming\npm\node_modules\rollup\dist\shared\rollup.js:18158:20)
at async ModuleLoader.fetchModule (C:\Users\d3x0r\AppData\Roaming\npm\node_modules\rollup\dist\shared\rollup.js:18212:9)
at async Promise.all (index 0)
M:\tmp\test_rollup>
I was working along... changed something and then boom nothing worked; it was very disheartening, and I had to find the command script, build the command line with node --inspect-brk backtrack from the error in an async stack (which is often very uninformative itself). And there is no information about which file contained the error; that is I include {sw.js -> network.js which the second file is the one with the error, but all I could fathom remotely from the error reported was 'sw.js' which is essenctially just the command line option passed.
The text was updated successfully, but these errors were encountered:
npm -g rollup
)Expected Behavior
Emit a sensible error that could help me fix my code? Support emitting
debugger;
in an if statement?Actual Behavior
Fatal error from using 'debugger;' statement, and it's very unclear where the error has occured; the error only reports information about rollup's stack, and not exactly what it's having an issue with.'
Example output
I was working along... changed something and then boom nothing worked; it was very disheartening, and I had to find the command script, build the command line with
node --inspect-brk
backtrack from the error in an async stack (which is often very uninformative itself). And there is no information about which file contained the error; that is I include {sw.js -> network.js which the second file is the one with the error, but all I could fathom remotely from the error reported was 'sw.js' which is essenctially just the command line option passed.The text was updated successfully, but these errors were encountered: