Code Monkey home page Code Monkey logo

Comments (10)

shaodahong avatar shaodahong commented on May 22, 2024 2

Still have

image

Version info

"webpack": "^5.0.0-beta.29",
"@pmmmwh/react-refresh-webpack-plugin": "^0.4.1",
"webpack-cli": "^3.3.12",
"webpack-dev-server": "^3.11.0",

Plugin config

      new ModuleFederationPlugin({
        name: APP_CONFIG.syscode,
        remotes,
        filename: 'remoteEntry.js',
        exposes: {
          './routes': './src/routes',
        },
      }),

from module-federation-examples.

ckken avatar ckken commented on May 22, 2024 1

image
update webpack 5 beta 21

from module-federation-examples.

oschade avatar oschade commented on May 22, 2024 1

Still an issue for me with the same error as above. Here the critical content in my remoteEntry.js:

grafik

from module-federation-examples.

ScriptedAlchemy avatar ScriptedAlchemy commented on May 22, 2024

beta 20?

from module-federation-examples.

ckken avatar ckken commented on May 22, 2024

beta 20?

yes

from module-federation-examples.

ScriptedAlchemy avatar ScriptedAlchemy commented on May 22, 2024

@jherr what are you using for HMR?

Worst case, live-reload works haha. I'll have to dig deeper. It might be good to post the issue here. Also, state how long its been an issue (beta 16?)

webpack/webpack#10352

from module-federation-examples.

ScriptedAlchemy avatar ScriptedAlchemy commented on May 22, 2024

Should be resolved

from module-federation-examples.

ckken avatar ckken commented on May 22, 2024

image
image

from module-federation-examples.

vjsolanki avatar vjsolanki commented on May 22, 2024

any update this ?

I have created small sample to reproduce the error:
https://github.com/solankivj/fast-refresh-hmr-error

Error only come when i expose something

  1. Try running app after clone with npm start
  2. Edit something and save.
  3. Error will show in console
  4. Remove expose field from module_federation plugin and restart
  5. Now the error is gone but on save we get full page refresh

from module-federation-examples.

zedford avatar zedford commented on May 22, 2024

I have this exact same issue that is only solved by not exposing anything in the ModuleFederationPlugin. Looks like cross-container support is on the roadmap:
#358

from module-federation-examples.

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.