[FOLIO-1776] Minify error building snapshot branch of platform-core Created: 04/Feb/19  Updated: 03/Jun/20  Resolved: 04/Feb/19

Status: Closed
Project: FOLIO
Components: None
Affects versions: None
Fix versions: None

Type: Bug Priority: P2
Reporter: John Malconian Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Sprint:

 Description   

Webpack build of the snapshot branch of platform-core fails. Error message in comments section.



 Comments   
Comment by John Malconian [ 04/Feb/19 ]

Snippet from build:

WARNING in ./node_modules/@folio/stripes/util/index.js 1:0-46
"export 'default' was not found in '@folio/stripes-util'
 @ ./node_modules/@folio/requests/src/Requests.js
 @ ./node_modules/@folio/requests/src/index.js
 @ ./node_modules/stripes-config.js
 @ ./node_modules/@folio/stripes-core/src/App.js
 @ ./node_modules/@folio/stripes-core/src/index.js
 @ multi @folio/stripes-components/lib/global.css ./node_modules/@folio/stripes-core/src/index

ERROR in chunk.ce25c02489448e15c01e.js from Terser
TypeError: Cannot read property 'minify' of undefined
    at minify (/home/jenkins/platform-core/node_modules/terser-webpack-plugin/dist/minify.js:175:23)
    at module.exports (/home/jenkins/platform-core/node_modules/terser-webpack-plugin/dist/worker.js:13:40)
    at handle (/home/jenkins/platform-core/node_modules/worker-farm/lib/child/index.js:44:8)
    at process.<anonymous> (/home/jenkins/platform-core/node_modules/worker-farm/lib/child/index.js:51:3)
    at emitTwo (events.js:126:13)
    at process.emit (events.js:214:7)
    at emit (internal/child_process.js:762:12)
    at _combinedTickCallback (internal/process/next_tick.js:142:11)
    at process._tickCallback (internal/process/next_tick.js:181:9)

ERROR in chunk.5b3cce6e938ef4eb61dc.js from Terser
TypeError: Cannot read property 'minify' of undefined
    at minify (/home/jenkins/platform-core/node_modules/terser-webpack-plugin/dist/minify.js:175:23)
    at module.exports (/home/jenkins/platform-core/node_modules/terser-webpack-plugin/dist/worker.js:13:40)
    at handle (/home/jenkins/platform-core/node_modules/worker-farm/lib/child/index.js:44:8)
    at process.<anonymous> (/home/jenkins/platform-core/node_modules/worker-farm/lib/child/index.js:51:3)
    at emitTwo (events.js:126:13)
    at process.emit (events.js:214:7)
    at emit (internal/child_process.js:762:12)
    at _combinedTickCallback (internal/process/next_tick.js:142:11)
    at process._tickCallback (internal/process/next_tick.js:181:9)

ERROR in chunk.b5b4d232003391c353b2.js from Terser
TypeError: Cannot read property 'minify' of undefined
    at minify (/home/jenkins/platform-core/node_modules/terser-webpack-plugin/dist/minify.js:175:23)
    at module.exports (/home/jenkins/platform-core/node_modules/terser-webpack-plugin/dist/worker.js:13:40)
    at handle (/home/jenkins/platform-core/node_modules/worker-farm/lib/child/index.js:44:8)
    at process.<anonymous> (/home/jenkins/platform-core/node_modules/worker-farm/lib/child/index.js:51:3)
    at emitTwo (events.js:126:13)
    at process.emit (events.js:214:7)
    at emit (internal/child_process.js:762:12)
    at _combinedTickCallback (internal/process/next_tick.js:142:11)
    at process._tickCallback (internal/process/next_tick.js:181:9)

ERROR in chunk.cab8b22dcfb56a661abd.js from Terser
TypeError: Cannot read property 'minify' of undefined
    at minify (/home/jenkins/platform-core/node_modules/terser-webpack-plugin/dist/minify.js:175:23)
    at module.exports (/home/jenkins/platform-core/node_modules/terser-webpack-plugin/dist/worker.js:13:40)
    at handle (/home/jenkins/platform-core/node_modules/worker-farm/lib/child/index.js:44:8)
    at process.<anonymous> (/home/jenkins/platform-core/node_modules/worker-farm/lib/child/index.js:51:3)
    at emitTwo (events.js:126:13)
    at process.emit (events.js:214:7)
    at emit (internal/child_process.js:762:12)
    at _combinedTickCallback (internal/process/next_tick.js:142:11)
    at process._tickCallback (internal/process/next_tick.js:181:9)

ERROR in chunk.dd8f64084d359822ff0f.js from Terser
TypeError: Cannot read property 'minify' of undefined
    at minify (/home/jenkins/platform-core/node_modules/terser-webpack-plugin/dist/minify.js:175:23)
    at module.exports (/home/jenkins/platform-core/node_modules/terser-webpack-plugin/dist/worker.js:13:40)
    at handle (/home/jenkins/platform-core/node_modules/worker-farm/lib/child/index.js:44:8)
    at process.<anonymous> (/home/jenkins/platform-core/node_modules/worker-farm/lib/child/index.js:51:3)
    at emitTwo (events.js:126:13)
    at process.emit (events.js:214:7)
    at emit (internal/child_process.js:762:12)
    at _combinedTickCallback (internal/process/next_tick.js:142:11)
    at process._tickCallback (internal/process/next_tick.js:181:9)
...
Comment by John Malconian [ 04/Feb/19 ]

Zak Burke verified that the build is working again and points to an upstream dependency issue that has been resolved. https://github.com/terser-js/terser/pull/254

Closing.

Generated at Thu Feb 08 23:15:49 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.