Could not find module `DA.Script'\nIt is not a module in the current program, or in any known pac
- Matthew_CollinsOP
can anyone help with this - [{
"message": "Could not find module `DA.Script'\nIt is not a module in the current program, or in any known package.", "source": "not found", "startLineNumber": 5, "startColumn": 8, "endLineNumber": 5, "endColumn": 17}]
module Setup where
import DA.Optional (fromSomeNote)
import qualified DA.Text as T
import DA.Script
- Andrae
This is probably because you haven’t added
daml-scriptto your dependencies in your project’sdaml.yamlDaml Script is only useful off-ledger, almost exclusively for testing (for which it is very useful). So it isn’t included by default in every Daml project configuration.
Check your
daml.yamlfile in the root directory of your project, and check thedependencies:section. If you want to use Daml.Script this should contain at least:dependencies: - daml-prim - daml-stdlib - daml-script