Issue Description:
I am following the “Building Your First Ontology Function” speedrun. In a new TypeScript v2 repository, the environment is failing to resolve @foundry/functions-api and @foundry/ontology-api.
Error Message:
Cannot find module '@foundry/functions-api' or its corresponding type declarations.
Details & Context:
-
Environment: Code Repositories, TypeScript v2.
-
Steps Taken:
-
Import Ontology resources (
Clinic,Financial) via the Resource Imports side panel. -
Restarted Code Assist and refreshed the browser multiple times.
-
Verified
functions.jsonhasenableResourceGeneration: true.
-
-
Observations: Even after adding resources, the “Generating Types” progress bar completes, but the red squiggles remain on the
@foundryimports. The environment appears unable to “materialize” the virtual packages required for the logic.
Desired Outcome:
Seeking guidance on forcing the TypeScript v2 language server to correctly index these virtual modules or identifying if there is a known compatibility issue with specific versions of the Functions API in v2.

