diff --git a/package.json b/package.json index 6da27d7e1..e0d0a94dd 100644 --- a/package.json +++ b/package.json @@ -90,6 +90,7 @@ "jszip": "^3.5.0", "mldoc": "1.1.8", "path": "^0.12.7", + "path-browserify": "^1.0.1", "pixi-graph-fork": "^0.1.6", "posthog-js": "^1.10.2", "react": "^17.0.2", diff --git a/src/main/frontend/utils.js b/src/main/frontend/utils.js index ad2f71801..c7e8bac36 100644 --- a/src/main/frontend/utils.js +++ b/src/main/frontend/utils.js @@ -1,4 +1,4 @@ -import path from 'path/path.js' +import path from 'path' if (typeof window === 'undefined') { global.window = {} diff --git a/yarn.lock b/yarn.lock index 6425783f9..cea8f0b73 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6382,10 +6382,10 @@ mkdirp@^1.0.3: resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e" integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== -mldoc@1.1.7: - version "1.1.7" - resolved "https://registry.yarnpkg.com/mldoc/-/mldoc-1.1.7.tgz#d32af9282353c87cbda570a4917c33c2ab79b2a9" - integrity sha512-+1hl3k82lkbb5O2bZ+AuvjQLcuXD5BJeGgPAJR7JfLQMOBg5nPBvpbJeMfJOZENFzicAT+NU9bp0gzlCTmjgGA== +mldoc@1.1.8: + version "1.1.8" + resolved "https://registry.yarnpkg.com/mldoc/-/mldoc-1.1.8.tgz#64d8e2c1d6696d289aea9ca90f2e35a54553578c" + integrity sha512-W9CT14vaEyHHM6J09LJy4Iwku17KuzFTgqhHWcqV198egoYVa0oB0+FjRBAG5LhwR7ctBpFBgF2OEZluF98F5A== dependencies: yargs "^12.0.2" @@ -6992,6 +6992,11 @@ path-browserify@0.0.1, path-browserify@~0.0.0: resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-0.0.1.tgz" integrity sha512-BapA40NHICOS+USX9SN4tyhq+A2RrN/Ws5F0Z5aMHDp98Fl86lX8Oti8B7uN93L4Ifv4fHOEA+pQw87gmMO/lQ== +path-browserify@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-1.0.1.tgz#d98454a9c3753d5790860f16f68867b9e46be1fd" + integrity sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g== + path-dirname@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/path-dirname/-/path-dirname-1.0.2.tgz" @@ -7866,6 +7871,8 @@ react-icons@^2.2.7: version "2.2.7" resolved "https://registry.yarnpkg.com/react-icons/-/react-icons-2.2.7.tgz#d7860826b258557510dac10680abea5ca23cf650" integrity sha512-0n4lcGqzJFcIQLoQytLdJCE0DKSA9dkwEZRYoGrIDJZFvIT6Hbajx5mv9geqhqFiNjUgtxg8kPyDfjlhymbGFg== + dependencies: + react-icon-base "2.1.0" react-is@^16.3.1, react-is@^16.8.1: version "16.13.1"