From 13bc5da77c6424a69d5dd4a8635c984e5cb2efa7 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Sat, 27 May 2023 18:53:44 +0800 Subject: [PATCH] fix: fix missing path-browserify dependency. #198 Module not found: Error: Can't resolve 'path' in '/home/runner/work/react-color/react-color/node_modules/@babel/core/lib/transformation' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. --- core/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/core/package.json b/core/package.json index 7ee82d29..f82ef842 100644 --- a/core/package.json +++ b/core/package.json @@ -55,6 +55,7 @@ "fs-extra": "~10.1.0", "minimist": "~1.2.6", "mocker-api": "~2.9.5", + "path-browserify": "^1.0.1", "postcss": "^8.4.4", "postcss-flexbugs-fixes": "^5.0.2", "postcss-loader": "^6.2.1",