You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prior to upgrading to Parcel 2, any changes to .elm files would force a hot reload/compile. After upgrading to parcel 2.2.0, only changes to Main.elm will compile after a compile error has occurred. Any files imported by Main.elm will not reload after a compile error.
import { Elm } from "./Main.elm";
Elm.Main.init({ node: document.getElementById("root") });
Main.elm
module Main exposing (..)
import Browser
import Html exposing (Html)
import SubModule
main =
Browser.sandbox { init = init, update = update, view = view }
type alias Model = Int
init : Model
init =
0
type Msg = NoOp
update : Msg -> Model -> Model
update msg model =
case msg of
NoOp ->
model
view : Model -> Html Msg
view model =
SubModule.view
Submodule.elm
module SubModule exposing (..)
import Html exposing (Html)
view : Html msg
view =
Html.div [] [Html.text "sub mod"]
🐛 bug report
Prior to upgrading to Parcel 2, any changes to .elm files would force a hot reload/compile. After upgrading to parcel 2.2.0, only changes to
Main.elm
will compile after a compile error has occurred. Any files imported byMain.elm
will not reload after a compile error.🎛 Configuration (.babelrc, package.json, cli command)
index.html
index.ts
Main.elm
Submodule.elm
package.json
Steps to reproduce
Submodule.elm
, i.e.🤔 Expected Behavior
😯 Current Behavior
💁 Possible Solution
🔦 Context
💻 Code Sample
https://github.com/zkrzyzanowski/parcel-elm-bug
🌍 Your Environment
The text was updated successfully, but these errors were encountered: