elm-community/elm-webpack-loader

Webpack 5 error in the browser

mickeyvip opened this issue · 1 comments

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.

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

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