Visitar URL original
pinpoint gets Http error as it tries retrieve with webpack ://// · Issue #55 · stacktracejs/stacktrace-gps · GitHub
Skip to content

pinpoint gets Http error as it tries retrieve with webpack ://// #55

Description

@viviancpy

I use StackTraceGPS. pinpoint to get the un-uglified stack but got error when stacktracegps starts to find my vendor code (REACT) from webpack.
image

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 tasknpm 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
],

`

Activity

  1. pierre-luc commented on Sep 29, 2017

    @pierre-luc

    I have the same problem with "Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https." Error.

  2. lankaapura commented on Jan 26, 2018

    @lankaapura

    I also have the same problem with Angular 5.x + Angular CLI. Does anyone know a fix or workaround?

  3. AdrianMrn commented on Mar 11, 2019

    @AdrianMrn

    Any fix for this yet?

  4. OneCyrus commented on May 18, 2019

    @OneCyrus

    hmm same issue. any one have a solution or another lib which works with webpack?

  5. rmehlinger commented on May 31, 2019

    @rmehlinger

    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?

  6. DmitryEfimenko commented on Jan 9, 2020

    @DmitryEfimenko

    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

  7. MetaSam commented on Oct 20, 2020

    @MetaSam

    Workaround: #65

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions