首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >远程模块找不到webpack 5模块联邦

远程模块找不到webpack 5模块联邦
EN

Stack Overflow用户
提问于 2022-06-16 20:43:18
回答 1查看 801关注 0票数 -1
代码语言:javascript
复制
Getting below error when loading the remote module, 
core.js:6498 ERROR Error: Uncaught (in promise): Error: No NgModule metadata found for 

“注册表模块”。错误:没有为“RegisterPageModule”找到NgModule元数据。

EN

回答 1

Stack Overflow用户

发布于 2022-06-16 23:40:29

您是否执行了以下命令: ng生成模块RegisterPageModule,请向我们展示您的RegisterPageModule代码。

你可以试试:

  1. 清除npm缓存

  1. 重新安装所有node_modules

  1. 检查您的"include“和"files”tsconfig设置等,您仍然存在问题,并且您正在延迟加载模块,检查您的tsconfig.json或tsconfig.app.json中的angularCompilerOptions,并确保"strictMetadataEmit“设置为false或被删除。

"angularCompilerOptions":{ "preserveWhitespaces":false,"strictInjectionParameters":true,"fullTemplateTypeCheck":true,"strictTemplates":true,// "strictMetadataEmit":true <-删除此设置或设置为false },

它可能有助于研究关于如何生成一个功能模块:https://angular.io/guide/feature-modules的角度引用。

以下是延迟加载模块https://angular.io/guide/lazy-loading-ngmodules的角度文档

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72651678

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档