errors/ModuleNotFound.md
ModuleNotFound Errormodule Example where
-- Notice the typo here: the module we are after is called Control.Monad.Eff.Console.
import Contorl.Monad.Eff.Console (log)
main = log "Hello, world!"
You might see this error because you have attempted to import a module which the compiler was unable to find, or because you mistyped the name of a module.
Check that:
purs build on the command line (note that build tools, such as webpack, parcel or spago, should generally take care of this for you; if in doubt, check their documentation).If you know which module you are looking for but are unsure which library it comes from, you can search for it on https://pursuit.purescript.org.