Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

320
Visualizações
Please make sure it is in your tsconfig via the 'files' or 'include' property

When I uncomment the below lines in my webpack.config.js

 name: "mfe2",
         filename: "remoteEntry.js",  // 2-3K w/ Meta Data
         exposes: {
             './Module': './projects/mfe2/src/app/mfe2/mfe2.module.ts',
         }, 

I am getting the following error :

PS D:\Projects\apicurio-microfrontend\projects\mfe2> ng s mfe2 -o
Your global Angular CLI version (13.3.2) is greater than your local version (13.1.2). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false".
✔ Browser application bundle generation complete.

Initial Chunk Files                                       | Names         |  Raw Size
polyfills.js                                              | polyfills     | 364.46 kB |
styles.css, styles.js                                     | styles        | 238.24 kB |
remoteEntry.js                                            | mfe1          | 238.14 kB |
vendor.js                                                 | vendor        | 210.97 kB |
main.js                                                   | main          |  28.12 kB |

                                                          | Initial Total |   1.05 MB

Lazy Chunk Files                                          | Names         |  Raw Size
node_modules_angular_core_fesm2020_core_mjs.js            | -             |   1.14 MB |
node_modules_angular_router_fesm2020_router_mjs-_6f000.js | -             | 362.85 kB |
node_modules_angular_router_fesm2020_router_mjs-_6f001.js | -             | 362.85 kB |
node_modules_angular_common_fesm2020_common_mjs-_ec490.js | -             | 229.45 kB |
node_modules_angular_common_fesm2020_common_mjs-_ec491.js | -             | 229.45 kB |
projects_mfe2_src_bootstrap_ts.js                         | bootstrap     |  93.62 kB | 
projects_mfe2_src_app_mfe2_mfe2_module_ts.js              | -             | 745 bytes |

Build at: 2022-04-21T18:30:50.406Z - Hash: 1911086e10ef8b89 - Time: 2800ms

./projects/mfe2/src/app/mfe2/mfe2.module.ts - Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
Error: D:\Projects\apicurio-microfrontend\projects\mfe2\src\app\mfe2\mfe2.module.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
    at D:\Projects\apicurio-microfrontend\node_modules\@ngtools\webpack\src\ivy\loader.js:60:26       



** Angular Live Development Server is listening on localhost:9000, open your browser on http://localhost:9000/ **

× Failed to compile.

But the project runs fine when i use the comment those lines. Please help

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda