evancz/elm-architecture-tutorial

I cannot find module 'Counter'.

frranck opened this issue · 3 comments

Hi,
I'm running into this problem when loading "1-counter-pair.elm"


 I cannot find module 'Counter'.

Module 'Main' is trying to import it.

Potential problems could be:
  * Misspelled the module name
  * Need to add a source directory or new dependency to elm-package.json

Any idea ?

How are you trying to compile things? Are you running elm-reactor from the root of the project, or from inside the nesting/ directory?

Also, I'd recommend asking about this on the Elm slack. They can help you work through this faster and figure out if any changes are needed here.

@evancz I'm running elm-reactor from the root of the project, OK will join the slack channel...

The nesting/ directory no longer exists, so this is resolved in that it cannot be reproduced anymore.