You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 11, 2022. It is now read-only.
When I try to export the SVG as a PNG or JPEG image, I am seeing the below error. This is happening before I chose the destination file/directory to export the file.
OS: macOS Catalina, version: 10.15.6 (19G2021)
TypeError [ERR_INVALID_ARG_TYPE] [ERR_INVALID_ARG_TYPE]: The "path" argument must be one of type string, Buffer, or URL. Received type object
at Object.openSync (fs.js:439:10)
at Object.func (electron/js2c/asar.js:138:31)
at Object.func [as openSync] (electron/js2c/asar.js:138:31)
at Object.writeFileSync (fs.js:1206:35)
at /Users/schunchu/.atom/packages/svg-preview/lib/svg-preview-view.js:396:12
at HTMLImageElement. (/Users/schunchu/.atom/packages/svg-preview/lib/svg-to-raster.js:23:12)
The text was updated successfully, but these errors were encountered:
From my experience with atom adapting the unit test could be a bit of work, but as the exportTo method is already async (for other reasons) it might to prove to be 0 minutes as well.
(don't have the bandwidth to make a PR for this a.t.m. And even if I did - not sure @josa42 would be willing and/ or able to merge it given the project not maintained label in the README)
Thanks, @sverweij.
I made those changes in my machine and used it, it worked. @josa42, let me if you can merge these changes. I can make PR (for the rest of community).
When I try to export the SVG as a PNG or JPEG image, I am seeing the below error. This is happening before I chose the destination file/directory to export the file.
OS: macOS Catalina, version: 10.15.6 (19G2021)
TypeError [ERR_INVALID_ARG_TYPE] [ERR_INVALID_ARG_TYPE]: The "path" argument must be one of type string, Buffer, or URL. Received type object
at Object.openSync (fs.js:439:10)
at Object.func (electron/js2c/asar.js:138:31)
at Object.func [as openSync] (electron/js2c/asar.js:138:31)
at Object.writeFileSync (fs.js:1206:35)
at /Users/schunchu/.atom/packages/svg-preview/lib/svg-preview-view.js:396:12
at HTMLImageElement. (/Users/schunchu/.atom/packages/svg-preview/lib/svg-to-raster.js:23:12)
The text was updated successfully, but these errors were encountered: