When working with Testcafe Studio, I encountered an issue with importing in Typescript compared to Javascript. I am trying to replicate the same process as shown in the example, but with Typescript instead.
page-model.ts
export default class Page {}
tests.ts
import * as page from './page-model';
However, the import statement is flagged with an error:
Cannot find module './page-model' or its corresponding type declarations.(2307)
I am wondering what additional steps are required to fix this issue?
After researching, I came across a similar question, which suggested that even Javascript file imports display the same error.
It is possible that this problem is related to the configuration Note:
TestCafe resolves user-specified relative paths against the TestCafe installation folder.
EDIT I have just realized that the issue is specific to Testcafe Studio. I have now updated the question and tags accordingly.