Giter VIP home page Giter VIP logo

Comments (2)

baldurh avatar baldurh commented on September 10, 2024 2

OK so our problem was that the webpack boilerplate chunk hash was not being updated when the chunk contents changed. We were using webpack-md5-hash which is being used in react-universally.
See this issue for details: erm0l0v/webpack-md5-hash#9
Also: webpack/webpack#1856

We discovered that people were getting two versions of the same file. When we purged the cache on both fastly and cloudflare everything went back to normal.

We removed webpack-md5-hash from our project and using HashedModuleIdsPlugin and ChunkManifestWebpackPlugin and did a similiar thing as found here:
ctrlplusb/react-universally#472

See webpack’s caching guide here: https://webpack.js.org/guides/caching/

Hope this helps somebody 🙈

from react-async-component.

baldurh avatar baldurh commented on September 10, 2024

We just had the exact same experience! Also code splitting routes. Only happens on production with a similar setup.
We had to back out as well. This was our second attempt at this after having a similar experience with faceyspacey/react-universal-component

Our error was: Cannot read property 'call' of undefined

from react-async-component.

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.