Skip to content

Commit

Permalink
Fix yarn run build
Browse files Browse the repository at this point in the history
yarn run build failed to run, due to following error:

    ERROR in sharetribe-flex-sdk-web.js from Terser
    Error: error:0308010C:digital envelope routines::unsupported

Read more here: webpack/webpack#14532

To fix the issue:

- Upgrade webpack to 4.47.0 (see: webpack/webpack#17628)
- Add `resolutions` block for terser-webpack-plugin until this PR is
  merged (webpack/webpack#17659)
  • Loading branch information
rap1ds committed May 13, 2024
1 parent 0e96282 commit 6539150
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"jest": "^29.7.0",
"open": "^7.0.2",
"prettier": "^1.14.0",
"webpack": "^4.46.0",
"webpack": "^4.47.0",
"webpack-cli": "^4.10.0"
},
"dependencies": {
Expand All @@ -65,7 +65,8 @@
"transit-js": "^0.8.861"
},
"resolutions": {
"docpress/**/lodash": "^4.17.10"
"docpress/**/lodash": "^4.17.10",
"terser-webpack-plugin": "^4.2.3"
},
"babel": {
"plugins": [
Expand Down

0 comments on commit 6539150

Please sign in to comment.