Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webpack is not getting compiled with node version < 14 #3

Open
Chetan77verma opened this issue Nov 8, 2021 · 6 comments
Open

Webpack is not getting compiled with node version < 14 #3

Chetan77verma opened this issue Nov 8, 2021 · 6 comments

Comments

@Chetan77verma
Copy link

I tried to configure fmr on node version > 14 it is working fine

but i want to make it work on node version 12 but webpack is not getting complied

/node_modules/@module-federation/fmr/src/server/sockets/modules/useSocketMessage.js:36
      data: data ?? undefined,
                  ^

SyntaxError: Unexpected token '?'
    at new Script (vm.js:88:7)
    at NativeCompileCache._moduleCompile (/Users/chetanverma/phable/phable.doctor.frontend.rx/ams-appointment/node_modules/v8-compile-cache/v8-compile-cache.js:240:18)
    at Module._compile (/Users/chetanverma/phable/phable.doctor.frontend.rx/ams-appointment/node_modules/v8-compile-cache/v8-compile-cache.js:184:36)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (/Users/chetanverma/phable/phable.doctor.frontend.rx/ams-appointment/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
    at Object.<anonymous> (/Users/chetanverma/phable/phable.doctor.frontend.rx/ams-appointment/node_modules/@module-federation/fmr/src/server/sockets/handlers/index.js:4:30)
    at Module._compile (/Users/chetanverma/phable/phable.doctor.frontend.rx/ams-appointment/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)

Some code contains es2020 , which is not support by node 12

I tried things but not able resolve it , if you guys know how i can do that it will be great help @ScriptedAlchemy

@IamDixit
Copy link

IamDixit commented Nov 9, 2021

Facing the exact same issue, any updates

@Harveyallen
Copy link

Facing the exact same issue,config the bable-loader that including this node_module but nothing happen.

@Chetan77verma
Copy link
Author

Chetan77verma commented Nov 17, 2021

any update @ScriptedAlchemy @statianzo ??

@statianzo
Copy link
Contributor

@Chetan77verma, sorry, I'm not associated with this fork of webpack-livereload-plugin.

@emphaticsunshine
Copy link

Any update on this?

@ScriptedAlchemy
Copy link
Member

Anyone wanna send a PR? Looks like we are using too new a syntax?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants