elm-community / elm-webpack-loader

Webpack loader for the Elm programming language.
BSD 3-Clause "New" or "Revised" License
532 stars 105 forks source link

Webpack 5 error in the browser #196

Closed mickeyvip closed 4 years ago

mickeyvip commented 4 years ago

Hello.

I am trying to use Webpack 5 and while the compiling goes without errors, in the browser I get the following:

image

image

This is shows that the Elm code was compiled and got to the client: image

Am I doing something wrong or does current implementation has problems with Webpack 5?

Thank you.

mickeyvip commented 4 years ago

It figures that the import is not default. Need to be:

// import Elm from './Main.elm'; // wrong
import { Elm } from './Main.elm'; // right