Expected Behavior
The ui5 build works.
Current Behavior
The ui5 build is failed.
Steps to reproduce the issue
- Execute ui5 build command and the error thrown
Context
- UI5 Module Version (output of
ui5 --version when using the CLI): {...}
- Node.js Version:
8.12.0
- npm Version:
5.6.0
- OS/Platform:
SUSE Linux
- Browser (if relevant):
N/A
- Other information:
N/A
Affected components (if known)
Log Output / Stack Trace
16:33:14 > Task :au-commonshell:au-commonshell-sap.sf.xlite.min-web:ui5Build FAILED
16:33:14 /tmpfs/jenkins/workspace/V4-PR_au-commonshell_PR-106-TZNXHPMO2RT2XDEYRYSBAOKX7MGM3KVWMEPWI2PLFL2S46VNLH2A/commonshell/au-commonshell-sap.sf.xlite.min-web/node_modules/@ui5/builder/lib/lbt/analyzer/JSModuleAnalyzer.js:179
16:33:14 throw new Error(`unknown estree node type '${type}', new syntax?`);
16:33:14 ^
16:33:14
16:33:14 Error: unknown estree node type 'ImportExpression', new syntax?
16:33:14 at Object.keys.forEach (/tmpfs/jenkins/workspace/V4-PR_au-commonshell_PR-106-TZNXHPMO2RT2XDEYRYSBAOKX7MGM3KVWMEPWI2PLFL2S46VNLH2A/commonshell/au-commonshell-sap.sf.xlite.min-web/node_modules/@ui5/builder/lib/lbt/analyzer/JSModuleAnalyzer.js:179:10)
Hi colleague,
I am from the SAP Sucessfactors, and we are using the ui5 builder in our daily build. Today we found an issue in ui5-builder and all the UI builds are failed.
Per my investigation, there is a new release of estraverse in several hours ago, it imported a new property called 'ImportExpression'. And I find in the JSModuleAnalyzer.js in ui5-builder, it will check all the properties exposed by estraverse.
estools/estraverse@7fc4475#diff-16e183a8233505f249340c48ca541fd2
Since the ImportExpression is not defined in the JSModuleAnalyzer.js, an error would be thrown and the build is failed.
Expected Behavior
The ui5 build works.
Current Behavior
The ui5 build is failed.
Steps to reproduce the issue
Context
ui5 --versionwhen using the CLI):{...}8.12.05.6.0SUSE LinuxN/AN/AAffected components (if known)
Log Output / Stack Trace
Hi colleague,
I am from the SAP Sucessfactors, and we are using the ui5 builder in our daily build. Today we found an issue in ui5-builder and all the UI builds are failed.
Per my investigation, there is a new release of
estraversein several hours ago, it imported a new property called 'ImportExpression'. And I find in theJSModuleAnalyzer.jsin ui5-builder, it will check all the properties exposed byestraverse.estools/estraverse@7fc4475#diff-16e183a8233505f249340c48ca541fd2
Since the
ImportExpressionis not defined in theJSModuleAnalyzer.js, an error would be thrown and the build is failed.