Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-92848

Generated Angular Based Portlet's rxjs typescript causes build errors

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Master
    • Fix Version/s: None
    • Component/s: JS Toolkit
    • Labels:
      None

      Description

      Steps:

      1. Run yo liferay-bundle and select Angular based portlet and say Yes to generating sample code.
      2. Run npm run build

      Expected result: the bundle JAR is generated

      Actual result:
      The rxjs files fail to build. Here's the output.

      >npm run build

      > my-angular-bundle-untouched@1.0.0 build C:\work-angular\my-angular-bundle-untouched
      > tsc && npm run copy-assets && liferay-npm-bundler

      node_modules/rxjs/internal/types.d.ts(81,44): error TS1005: ';' expected.
      node_modules/rxjs/internal/types.d.ts(81,74): error TS1005: ';' expected.
      node_modules/rxjs/internal/types.d.ts(81,77): error TS1109: Expression expected.
      npm ERR! code ELIFECYCLE
      npm ERR! errno 2
      npm ERR! my-angular-bundle-untouched@1.0.0 build: `tsc && npm run copy-assets && liferay-npm-bundler`
      npm ERR! Exit status 2
      npm ERR!
      npm ERR! Failed at the my-angular-bundle-untouched@1.0.0 build script.
      npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

      npm ERR! A complete log of this run can be found in:
      npm ERR! C:\Users\liferay\AppData\Roaming\npm-cache_logs\2019-03-27T17_39_53_897Z-debug.log

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            james.hinkey James Hinkey
            Participants of an Issue:
            Recent user:
            Joel Bourgeois
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              2 years, 7 weeks, 4 days ago

                Packages

                Version Package