Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

319
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!