There are 3 TypeScript projects listed below:
- root-config
- a parcel project named
my-app
- an in-browser utility module called
api
All of these projects were created using the create-single-spa
command.
In the file api/src/lomse-api.ts
, I am exporting the module fetchPeople
like this:
export { fetchPeople } from "./PeopleApi.ts";
As per the single-spa documentation, assuming my orgName
is lomse
and projectName
is api
, I should be able to import fetchPeople
into my-app
like so:
import { fetchPeople } from '@lomse/api'
However, since my-app
is a TypeScript project, the above statement results in an error:
Cannot find module '@lomse/api' or its corresponding type declarations.
Is there a solution to this issue?