Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Could not find module `DA.Script'\nIt is not a module in the current program, or in any known pacForum ↗

Could not find module `DA.Script'\nIt is not a module in the current program, or in any known pac

App Development2 posts53 viewsLast activity Sep 2024
MA
Matthew_CollinsOP
Sep 2024

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

AN
Andrae
Sep 2024

This is probably because you haven’t added daml-script to your dependencies in your project’s daml.yaml

Daml 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.yaml file in the root directory of your project, and check the dependencies: section. If you want to use Daml.Script this should contain at least:

dependencies:
- daml-prim
- daml-stdlib
- daml-script
← Back to Discussions