-
Notifications
You must be signed in to change notification settings - Fork 147
Open
Description
Is this a bug report?
Yes
Environment
node -v: v16.10.0npm -v: 7.24.1npm ls create-elm-app -g:
/usr/local/lib
βββ [email protected]
Then, specify:
- Operating system: macOS Catalina 10.15.7 19H1419 x86_64
Steps to Reproduce
- Start a JSON API server at http://localhost:8081 serving an
/itemsendpoint - Add this to
elmapp.config.jsmodule.exports = { proxy: "http://localhost:8081", }
- Create Elm app like:
main : Program () Model Msg main = Browser.application { view = view , init = \_ -> \_ -> \_ -> init , update = update , subscriptions = always Sub.none , onUrlRequest = \_ -> NoOp , onUrlChange = \_ -> NoOp }
- Start elm app with
npx elm-app start
Expected Behavior
http://localhost:3000/items should serve the JSON
Actual Behavior
Serves the same Elm app as under http://localhost:3000
I assume that the problem is the interaction with Browser.application, but I'm not sure about that.
Metadata
Metadata
Assignees
Labels
No labels