Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-28205

Angular: packaging an angular app fails


    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Release 9.3.1, Release 10.0.0
    • Component/s: Android, iOS
    • Labels:
    • Environment:
    • Sprint:
      2020 Sprint 22, 2020 Sprint 23, 2020 Sprint 24, 2020 Sprint 25, 2020 Sprint 26


      Steps to reproduce:

      1. Create an angular app.
      2. Try to package it for android & ios via CLI or after importing it to studio.

      Actual result:

      1. Packaging fails with:

      [INFO] :    WEBPACK   WAIT  Compiling ...
      [INFO] :    WEBPACK   ERROR  Failed to compile with 1 errors2:49:02 PM
      [INFO] :    WEBPACK  
      [INFO] :    WEBPACK   error  in /Users/lchoudhary/Desktop/angtest2/src/main.aot.ts
      [INFO] :    WEBPACK  Module build failed (from ./node_modules/@ngtools/webpack/src/index.js):
      [INFO] :    WEBPACK  Error: /Users/lchoudhary/Desktop/angtest2/src/main.aot.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
      [INFO] :    WEBPACK      at TitaniumAngularCompilerPlugin.getCompiledFile (/Users/lchoudhary/Desktop/angtest2/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:933:23)
      [INFO] :    WEBPACK      at plugin.done.then (/Users/lchoudhary/Desktop/angtest2/node_modules/@ngtools/webpack/src/loader.js:41:31)
      [INFO] :    WEBPACK      at process._tickCallback (internal/process/next_tick.js:68:7)
      [INFO] :    WEBPACK  
      [INFO] :    WEBPACK   @ multi ./src/main.aot.ts
      [ERROR] :  Error: Webpack compilation failed.
          at WebpackService.handler (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/9.2.2.v20201015143748/cli/lib/webpack/service.js:240:20)
          at WebpackService.emit (events.js:210:5)
          at Subscription.<anonymous> (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/9.2.2.v20201015143748/cli/lib/webpack/service.js:287:10)
          at Subscription.emit (events.js:210:5)
          at EventEmitter.<anonymous> (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/9.2.2.v20201015143748/cli/lib/webpack/appcd.js:50:19)
          at EventEmitter.emit (events.js:210:5)
          at Object.handler (/Users/lchoudhary/.appcelerator/install/8.1.1/package/node_modules/appcd-client/dist/client.js:313:19)
          at WebSocket.<anonymous> (/Users/lchoudhary/.appcelerator/install/8.1.1/package/node_modules/appcd-client/dist/client.js:126:31)
          at WebSocket.emit (events.js:210:5)
          at Receiver.receiverOnMessage (/Users/lchoudhary/.appcelerator/install/8.1.1/package/node_modules/appcd-client/node_modules/ws/lib/websocket.js:800:20)

      Expected result:

      1. The app is packaged successfully.




            • Assignee:
              jvennemann Jan Vennemann
              lchoudhary Lokesh Choudhary
              Ewan Harris
              Lokesh Choudhary
            • Watchers:
              3 Start watching this issue


              • Created:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration