Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error TS2307: Cannot find module '../../../types/api-output' or its corresponding type declarations. #12602

Closed
HarryLu33 opened this issue Oct 8, 2023 · 3 comments

Comments

@HarryLu33
Copy link
Contributor

error TS2307: Cannot find module '../../../types/api-output' or its corresponding type declarations.

  • Environment:
    master branch at commit 62139bc
    Steps to reproduce
    Run src\web\app\components\comment-box\comment-edit-form\comment-edit-form.component.spec.ts file.

Expected behaviour
Compile successfully

Actual behaviour
`Test suite failed to run

src/web/app/components/teammates-common/feedback-path.pipe.ts:2:41 - error TS2307: Cannot find module '../../../types/api-output' or its corresponding type declarations.

2 import { FeedbackParticipantType } from '../../../types/api-output';
                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~`

Additional info

I am currently working on issue #12588 to Improve the test code coverage of CommentEditFormComponent. When I tried to run the test, the code could not compile. It shows cannot find module '../../../types/api-output'. I am new to this project, is there anything I missed to get this error?

@jasonqiu212
Copy link
Contributor

Hi @HarryLu33, Have you tried running the ./gradlew createConfigs command to generate the config files? For more information, please refer to our Setting Up documentation page :)

@HarryLu33
Copy link
Contributor Author

HarryLu33 commented Oct 9, 2023

Thanks for your reply!
yes, I have gone through all the setup steps. However the types/api-output directory is still missing

Screenshot 2023-10-10 000229
image

@cedricongjh
Copy link
Contributor

cedricongjh commented Oct 9, 2023

hi @HarryLu33 I think what you should be missing is gradLew generateTypes, do try that out and let us know if it works!

@TEAMMATES TEAMMATES locked and limited conversation to collaborators Oct 10, 2023
@wkurniawan07 wkurniawan07 converted this issue into discussion #12603 Oct 10, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants