"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
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: