From 66da32a5c7e0a8173219a6bd8e19b5b969899ca0 Mon Sep 17 00:00:00 2001 From: donykevin214 Date: Thu, 5 May 2022 16:14:13 +0900 Subject: [PATCH] Update minimum version of webpack When using latest node, webpack produces an error, Error: error:0308010C:digital envelope routines::unsupported https://github.com/webpack/webpack/issues/14532 This is due to the webpack version being 5.53.0 when running npm install. The error is fixed in 5.61.0 by the following merged pull request, https://github.com/webpack/webpack/pull/14584 https://github.com/webpack/webpack/releases/tag/v5.61.0 When I set 5.61.0 as the minimum I now get 5.72.0 version which is latest. Build completes without error. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 52b15cb..93e0258 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "ts-jest": "^27.0.5", "ts-loader": "^8.0.0", "typescript": "^4.4.3 ", - "webpack": "^5.0.0", + "webpack": "^5.61.0", "webpack-cli": "^4.0.0", "webpack-merge": "^5.0.0" }