Elm-make cannot find files after moving files to subdirectory

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 any other configuration somewhere else that I need to do so that elm-make can find my code?

+3


source to share


1 answer


You still need elm-make src/Main.elm

it as it runs from the command line, but now any imports in Main.elm will be found in src / ...



+4


source







All Articles