3

I refactored my Elm code to be located in the src directory. And I updated elm-package.json to have "source-directories": [ "src" ],

However, now when I run elm-make Main.elm I get this error message:

elm-make: Main.elm: openFile: does not exist (No such file or directory)

Is there another configuration somewhere else I need to make to have elm-make be able to find my code?

Eric Johnson
  • 1,084
  • 13
  • 24

1 Answers1

5

You still need elm-make src/Main.elm as that is being run from the command line, but now any import statements in Main.elm will be looked up in src/...

Simon H
  • 20,332
  • 14
  • 71
  • 128