ModuleConcatenation bailout: Module is not an ECMAScript module

Bug report

What is the current behavior?

I receive a lot of stuff like this:

chunk    {0} main.bundle.js (main) 1.92 MiB [entry] [rendered]
        > ./app/main.js main
       [2] external "path" 42 bytes {0} [depth 1] [built]
           ModuleConcatenation bailout: Module is not an ECMAScript module

Which then fails to build the bundle.

If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?

Other relevant information:
webpack version:
Node.js version:
Operating System:
Additional tools:

Author: Fantashit

1 thought on “ModuleConcatenation bailout: Module is not an ECMAScript module

  1. @montogeek you don’t have to close issues that you don’t have an answer for. Somebody else may come by with the same issue and help me resolve it. I have a very basic configuration for compiling node code.

Comments are closed.