From 114998bb33df2ad51b2d54bdb9b147758190db27 Mon Sep 17 00:00:00 2001 From: LS Hung <61226932+lokshunhung@users.noreply.github.com> Date: Tue, 27 Oct 2020 14:52:51 +0800 Subject: [PATCH] [FIX]: web-ui: Check in @babel/runtime dependency version https://github.com/babel/babel/issues/8462 Webpack fails to load @babel/runtime helper functions (required by antd, rc-*) due to the import specifier not being fully resolved (missing .js, .mjs extension) This is fixed in @babel/runtime 7.12.0 but antd does not require the latest @babel/runtime by default So a peer dependency of @babel/runtime@>=7.12.1 (currently latest) is added --- packages/web-ui/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/web-ui/package.json b/packages/web-ui/package.json index 0036b475..180a154a 100644 --- a/packages/web-ui/package.json +++ b/packages/web-ui/package.json @@ -27,6 +27,7 @@ "moment": "2.29.1" }, "peerDependencies": { + "@babel/runtime": ">=7.12.1", "react": ">=16.14.0", "react-dom": ">=16.14.0", "react-router-dom": ">=5.2.0"