module-federation / fmr

Federated Module Reloading for DEV mode
ISC License
44 stars 1 forks source link

I try to add MFLiveReloadPlugin to vue.config.js. ( ERROR SyntaxError: Unexpected token '?') error #5

Open Shin-Beomchul opened 2 years ago

Shin-Beomchul commented 2 years ago

I get an error when I try to add MFLiveReloadPlugin to vue.config.js. Maybe it's a babel problem, but I can't find the exact cause. Help. I've been up all night for a few days...

Step 1. add Dependency

Step 2. add vue.config.js MFLiveReloadPlugin

Step 3. yarn build or yarn serve ..

 ERROR  SyntaxError: Unexpected token '?'
/Users/god/dev/pilot/web/mono-vue3-module-federation/components/comm-components/node_modules/@module-federation/fmr/src/server/sockets/modules/useSocketMessage.js:36
      data: data ?? undefined,
                  ^

SyntaxError: Unexpected token '?'
    at wrapSafe (internal/modules/cjs/loader.js:931:16)
    at Module._compile (internal/modules/cjs/loader.js:979:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
    at Module.load (internal/modules/cjs/loader.js:879:32)
    at Function.Module._load (internal/modules/cjs/loader.js:724:14)
    at Module.require (internal/modules/cjs/loader.js:903:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/Users/god/dev/pilot/web/mono-vue3-module-federation/components/comm-components/node_modules/@module-federation/fmr/src/server/sockets/handlers/index.js:4:30)
    at Module._compile (internal/modules/cjs/loader.js:1015:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1035:10)

Code : https://github.com/Shin-Beomchul/mono-vue3-module-federation/blob/master/components/comm-components/vue.config.js

ScriptedAlchemy commented 1 year ago

Send a pr

radadiyasmit5 commented 4 months ago

is there any update on this issue ??

ScriptedAlchemy commented 3 months ago

Will be shipping real hmr support this quarter I think. Use module federation/ enhanced or check on federation/universe repo for status