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: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: Master
    • Fix Version/s: None
    • Component/s: JS Toolkit
    • Labels:
      None
    • Fix Priority:
      1

      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

      > [email protected] 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! [email protected] build: `tsc && npm run copy-assets && liferay-npm-bundler`
      npm ERR! Exit status 2
      npm ERR!
      npm ERR! Failed at the [email protected] 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:
            esther.ortega Esther Ortega
            Reporter:
            james.hinkey James Hinkey
            Participants of an Issue:
            Recent user:
            Manoel Cyreno
            Engineering Assignee:
            Esther Ortega
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              12 weeks, 2 days ago

                Packages

                Version Package