stacktrace-gps
stacktrace-gps copied to clipboard
pinpoint gets Http error as it tries retrieve with webpack :////
I use StackTraceGPS. pinpoint to get the un-uglified stack but got error when stacktracegps starts to find my vendor code (REACT) from webpack.
Error: Error: HTTP status: 0 retrieving webpack:///~/react/lib/ReactCompositeComponent.js at XMLHttpRequest.r.onreadystatechange
Webpack config: devtool: 'source-map', entry: './src/index', target: 'web', output: { path: __dirname + '/dist', // Note: Physical files are only output by the production build task
npm run build`.
publicPath: '/myapp/',
filename: 'bundle.js'
},
devServer: {
contentBase: './dist'
},
plugins: [
new webpack.DefinePlugin(GLOBALS),
new webpack.optimize.UglifyJsPlugin({
compress: { warnings: false },
output: { comments: false },
sourceMap: true
}),
new BundleAnalyzerPlugin({analyzerMode: 'static', generateStatsFile: true, openAnalyzer: false}),
extractSass
],
`
I have the same problem with "Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https." Error.
I also have the same problem with Angular 5.x + Angular CLI. Does anyone know a fix or workaround?
Any fix for this yet?
hmm same issue. any one have a solution or another lib which works with webpack?
I'm also hitting this issue. I suspect the solution involves reconfiguring webpack-config.js, but I have no idea how. Anyone have any ideas?
Having the same issue in Angular 8. It does complain about CORS:
Access to XMLHttpRequest at 'webpack:///polyfills.js' from origin 'http://localhost:4200' has been blocked by CORS policy
ERROR Error: Uncaught (in promise): Error: HTTP status: 0 retrieving webpack:///polyfills.js
Workaround: https://github.com/stacktracejs/stacktrace-gps/issues/65