diff --git a/app/soapbox/utils/static.ts b/app/soapbox/utils/static.ts index 0a8048a32..e85bd8723 100644 --- a/app/soapbox/utils/static.ts +++ b/app/soapbox/utils/static.ts @@ -3,7 +3,7 @@ * @module soapbox/utils/static */ -import { join } from 'path'; +import { join } from 'path-browserify'; import * as BuildConfig from 'soapbox/build-config'; diff --git a/package.json b/package.json index 85a461217..d881a87cc 100644 --- a/package.json +++ b/package.json @@ -76,6 +76,7 @@ "@types/leaflet": "^1.8.0", "@types/lodash": "^4.14.180", "@types/object-assign": "^4.0.30", + "@types/path-browserify": "^1.0.0", "@types/react": "^18.0.26", "@types/react-color": "^3.0.6", "@types/react-datepicker": "^4.4.2", diff --git a/yarn.lock b/yarn.lock index eb08b728f..c58f38bc0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2859,6 +2859,11 @@ resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0" integrity sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA== +"@types/path-browserify@^1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@types/path-browserify/-/path-browserify-1.0.0.tgz#294ec6e88b6b0d340a3897b7120e5b393f16690e" + integrity sha512-XMCcyhSvxcch8b7rZAtFAaierBYdeHXVvg2iYnxOV0MCQHmPuRRmGZPFDRzPayxcGiiSL1Te9UIO+f3cuj0tfw== + "@types/prop-types@*": version "15.7.6" resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.6.tgz#bbf819813d6be21011b8f5801058498bec555572"