dynajoe/elm-webpack-project-loader

Unique Port Name Runtime exception

Closed this issue · 1 comments

tldr; We brought 2 different elm Mains together and they both had a port called init and everything complied fine, elm-webpack-project-loader brought them together and then it blew up at run time.

We have just started switching over to using elm-webpack-project-loader and so far it's looking great.

We did run into 1 issue though, and it's totally "work around-able" and probably not even this project's fault, but it still may make sense to try to do something about it at this layer.

It would appear this is not a new issue: elm/compiler#1450

In theory it seems like this is something elm make should catch.

However, maybe it's possible to do something in this loader to check for conflicting port names and stop it at the webpack level?

Thanks for the analysis. Any ideas on what can be done besides using unique port names?