Base solution for your next web application
Open Closed

error in abp-ng2-module #5392


User avatar
0
jollyticket created

Hello friends, any suggestion for this error?

ERROR in ./node_modules/abp-ng2-module/src/auth/permission-checker.service.ts Module build failed: Error: S:\Progetti\SLT\Voiago\Dev\branch-main-fw522\angular\node_modules\abp-ng2-module\src\auth\permission-checker.service.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property. The missing file seems to be part of a third party library. TS files in published libraries are often a sign of a badly packaged library. Please open an issue in the library repository to alert its author and ask them to package the library using the Angular Package Format (<a class="postlink" href="https://goo.gl/jB3GVv">https://goo.gl/jB3GVv</a>). at AngularCompilerPlugin.getCompiledFile (S:\Progetti\SLT\Voiago\Dev\branch-main-fw522\angular\node_modules@ngtools\webpack\src\angular_compiler_plugin.js:709:23) at plugin.done.then (S:\Progetti\SLT\Voiago\Dev\branch-main-fw522\angular\node_modules@ngtools\webpack\src\loader.js:41:31) at <anonymous> at process._tickCallback (internal/process/next_tick.js:160:7) ERROR in ./node_modules/abp-ng2-module/src/session/abp-session.service.ts Module build failed: Error: S:\Progetti\SLT\Voiago\Dev\branch-main-fw522\angular\node_modules\abp-ng2-module\src\session\abp-session.service.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property. The missing file seems to be part of a third party library. TS files in published libraries are often a sign of a badly packaged library. Please open an issue in the library repository to alert its author and ask them to package the library using the Angular Package Format (<a class="postlink" href="https://goo.gl/jB3GVv">https://goo.gl/jB3GVv</a>). at AngularCompilerPlugin.getCompiledFile (S:\Progetti\SLT\Voiago\Dev\branch-main-fw522\angular\node_modules@ngtools\webpack\src\angular_compiler_plugin.js:709:23) at plugin.done.then (S:\Progetti\SLT\Voiago\Dev\branch-main-fw522\angular\node_modules@ngtools\webpack\src\loader.js:41:31) at <anonymous> at process._tickCallback (internal/process/next_tick.js:160:7) Failed to compile

I have just upgrade my project to abp 5.5.2.

Angular CLI: 6.0.8
Node: 9.5.0
OS: win32 x64
Angular: 6.0.4
... animations, common, compiler, compiler-cli, core, forms
... http, platform-browser, platform-browser-dynamic
... platform-server, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.6.0
@angular-devkit/build-angular     0.6.0
@angular-devkit/build-optimizer   0.6.0
@angular-devkit/core              0.6.8
@angular-devkit/schematics        0.6.8
@angular/cli                      6.0.8
@ngtools/webpack                  6.0.0
@schematics/angular               0.6.8
@schematics/update                0.6.8
rxjs                              6.2.0
typescript                        2.7.2
webpack                           4.6.0

2 Answer(s)
  • User Avatar
    0
    jollyticket created

    This solve my problem <a class="postlink" href="https://github.com/aspnetboilerplate/abp-ng2-module/issues/27#issuecomment-402647816">https://github.com/aspnetboilerplate/ab ... -402647816</a>

    I add the include section on tsconfing:

    "include": [
        "../src/**/*",
        "../node_modules/abp-ng2-module/src/**/*"
      ],
    

    :?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @jollyticket,

    Probably this will cause some other problems. Can you check this <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues/1371">https://github.com/aspnetzero/aspnet-ze ... ssues/1371</a> ?