Purescript Beginner here
I seem to be getting a ModuleNotFoundError
when using vscode-ide-purescript
.
How I got to the error
1. creating directory
mkdir purescript-trial
cd purescript-trial
2. initializing yarn and installing purescript, spago and purty
yarn init -y
yarn add -D purescript spago purty
3. Initializing Spago
yarn spago init
4. Building Purescript with Spago
yarn spago build
This command builds the project and creates the output
directory.
5. Pasting the following into the local settings.json
in the project .vscode
folder
purescript-trial/.vscode/settings.json
{
"purescript.addSpagoSources": true,
"purescript.addNpmPath": true,
"purescript.buildCommand": "yarn spago build --purs-args --json-errors"
}
6. opening vscode at project level and getting a build prompt despite already having built the project earlier.
7. After Pressing Build Project
it successfully builds.
8. After saving the Main.purs
file that was generated from yarn spago build
I seem to be getting the weird that none of the imports were found.
Thanks in advance.