How to fix ERR_MODULE_NOT_FOUND

Cenk 1,041 Reputation points
2023-11-13T13:38:53.1233333+00:00

I am attempting to create a standalone Typescript Angular project in VS 2022 Community, but I am encountering the ERR_MODULE_NOT_FOUND error. How can I resolve this issue?

The following is an image of the error:

Ekran görüntüsü 2023-11-13 142511

Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,686 Reputation points Microsoft External Staff
    2023-11-14T08:02:43.32+00:00

    Hello @Cenk,

    Welcome to Microsoft Q&A forum.

    Please try to create another new standalone Typescript Angular project and check if the same issue appears.

    If the same issue appears, please try to reinstall the corresponding workload(Node.js development), node.js and ng.

    If the same issue doesn’t appear, then for the previous project, please try to clean project cache and rebuild it.

    If it still doesn’t work, please try to install 20.9.0 LTS version of Node.js and check again.

    Sincerely,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.