nelsonic
nelsonic

Reputation: 33244

I cannot find module 'Html.App' elm v0.18

When upgrading from elm v0.17.1 to v0.18 we see the following error:

I cannot find module 'Html.App'.

the App method was available in v1.1.0 of the Html package see: http://package.elm-lang.org/packages/elm-lang/html/1.1.0/Html-App

but appears to have been removed from v2.0.0 http://package.elm-lang.org/packages/elm-lang/html/2.0.0 hence the semver version bump...

Note: related to: Elm "cannot find module" (but this is specific to Html.App)

Upvotes: 11

Views: 2909

Answers (1)

Chad Gilbert
Chad Gilbert

Reputation: 36385

The contents of Html.App were moved to the Html package in version 0.18. You can simply import from Html and remove references to Html.App.

From the upgrade instructions:

elm-lang/html collapsed Html.App into Html. So you need to remove any import Html.App imports and refer to Html.program instead.

See the release notes here.

Upvotes: 14

Related Questions