Guys I'm creating (asp.net core with angular) project and every time I create the project this error show up in my face:
TS2307 (TS) Cannot find module '@nguniversal/module-map-ngfactory-loader' or its corresponding type declarations.
this is the import statement im using: import { ModuleMapLoaderModule } from '@nguniversal/module-map-ngfactory-loader';
Hi
@Muhammad Ghozlan
,
TS2307 (TS) Cannot find module '@nguniversal/module-map-ngfactory-loader' or its corresponding type declarations.
and it is in "app.server.module.ts" file.
this is the import statement im using: import { ModuleMapLoaderModule } from '@nguniversal/module-map-ngfactory-loader';
Try to check the project file via the File Explorer, open the ClientApp\node_modules folder, whether you can find the
@nguniversal/module-map-ngfactory-loader
module or not?
Since the
@nguniversal/module-map-ngfactory-loader
module has been deprecated, if you are using the latest version, this package might be not installed. So, try to install it by yourself, use the following command:
npm install @nguniversal/module-map-ngfactory-loader --save
More detain information, see Module Map NgFactory Loader.
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.
Best regards,
Dillion