stacktracejs / error-stack-parser

Extract meaning from JS Errors
https://www.stacktracejs.com/#!/docs/error-stack-parser
MIT License
450 stars 52 forks source link

TypeError: StackFrame is not a constructor #78

Closed cuongtm18 closed 2 years ago

cuongtm18 commented 2 years ago

Expected Behavior

Current Behavior

ERROR TypeError: StackFrame is not a constructor TypeError: StackFrame is not a constructor at Object. (......\node_modules\@soda\friendly-errors-webpack-plugin\node_modules\error-stack-parser\error-stack-parser.js:76:24) at Array.map () at Object.ErrorStackParser$$parseV8OrIE [as parseV8OrIE] (...\node_modules\@soda\friendly-errors-webpack-plugin\node_modules\error-stack-parser\error-stack-parser.js:56:29) at Object.ErrorStackParser$$parse [as parse] ....\node_modules\@soda\friendly-errors-webpack-plugin\node_modules\error-stack-parser\error-stack-parser.js:31:29) at getOriginalErrorStack (...\node_modules\@soda\friendly-errors-webpack-plugin\src\core\extractWebpackError.js:31:29) at extractError (...\node_modules\@soda\friendly-errors-webpack-plugin\src\core\extractWebpackError.js:22:20) at Array.map () at processErrors (...\node_modules\@soda\friendly-errors-webpack-plugin\src\core\transformErrors.js:31:17) at FriendlyErrorsWebpackPlugin.displayErrors (...\node_modules\@soda\friendly-errors-webpack-plugin\src\friendly-errors-plugin.js:97:29) at doneFn (...\node_modules\@soda\friendly-errors-webpack-plugin\src\friendly-errors-plugin.js:57:14) at AsyncSeriesHook.eval [as callAsync] (eval at create (...i\node_modules\tapable\lib\HookCodeFactory.js:33:10), :18:1) at AsyncSeriesHook.lazyCompileHook (...i\node_modules\tapable\lib\Hook.js:154:20) at ...\node_modules\webpack\lib\Compiler.js:304:22 at Compiler.emitRecords (...\node_modules\webpack\lib\Compiler.js:499:39) at ...\node_modules\webpack\lib\Compiler.js:298:10 at ...\node_modules\webpack\lib\Compiler.js:485:14

Steps to Reproduce (for bugs)

Context

Your Environment

Possible Solution

titanism commented 2 years ago

https://github.com/stacktracejs/error-stack-parser/issues/77#issuecomment-1147017458