Coder Social home page Coder Social logo

Comments (10)

sureshHARDIYA avatar sureshHARDIYA commented on June 11, 2024 7

I am also having same issue. Any solution would be appreciated.

from fetch-event-source.

ziyoung avatar ziyoung commented on June 11, 2024 4

There's a workaround.

If you are using webpack, set ignoreWarnings option to skip parse error. https://webpack.js.org/configuration/other-options/#ignorewarnings

module.exports = {
  // ...
  ignoreWarnings: [/Failed to parse source map/]
}

If you are using custome-cra, add the following code in config-overrides.js.

const addIgnoreWarnings = (_loaderOptions) => config => {
  // https://github.com/facebook/create-react-app/blob/0a827f69ab0d2ee3871ba9b71350031d8a81b7ae/packages/react-scripts/config/webpack.config.js#L353
  const loader = config.module.rules.find(({
    enforce, loader
  }) => enforce === 'pre' && typeof loader === 'string' && loader.includes('source-map-loader'));
  if (loader) {
    if (!config.ignoreWarnings) {
      config.ignoreWarnings = [];
    }
    config.ignoreWarnings.push(/Failed to parse source map/,)
  }
  return config
}


module.exports = {
  webpack: override(
    // ...
    addIgnoreWarnings(),
  )
};

from fetch-event-source.

schnerd avatar schnerd commented on June 11, 2024 3

@vishwam @firedog1024 Do you plan to maintain and accept PRs for this repo (e.g. #23)? Otherwise our team may just fork it if fixes won't be merged in.

from fetch-event-source.

inad9300 avatar inad9300 commented on June 11, 2024 2

Idem.

from fetch-event-source.

OldManMeta avatar OldManMeta commented on June 11, 2024 2

Any solutions for this???

from fetch-event-source.

jordanarldt avatar jordanarldt commented on June 11, 2024 2

This is still an issue

from fetch-event-source.

peplocanto avatar peplocanto commented on June 11, 2024 2

MS doin' MS, I suppose...

from fetch-event-source.

dargmuesli avatar dargmuesli commented on June 11, 2024

You might want to check out extended-eventsource as potential new replacement. It's codebase looks proper.

from fetch-event-source.

Calamari avatar Calamari commented on June 11, 2024

So, what's the solution here? Is this project abandoned I should use something else?
The problem obviously still exists…

from fetch-event-source.

woutkonings avatar woutkonings commented on June 11, 2024

Also having this issue...

from fetch-event-source.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.