nodegui / react-nodegui

Build performant, native and cross-platform desktop applications with native React + powerful CSS like styling.🚀
https://react.nodegui.org
MIT License
6.18k stars 171 forks source link

Bad URL Protocol C: when running on Windows. #358

Open foxt opened 3 years ago

foxt commented 3 years ago

Describe the bug Images fail to load when running under Windows.

Error: Bad URL protocol: c:
    at C:\Users\me\rblxRP\node_modules\centra\model\CentraRequest.js:170:15
    at new Promise (<anonymous>)
    at CentraRequest.send (C:\Users\me\rblxRP\node_modules\centra\model\CentraRequest.js:93:10)
    at Object.phin [as default] (C:\Users\me\rblxRP\node_modules\phin\lib\phin.js:58:24)
    at C:\Users\me\rblxRP\node_modules\@nodegui\react-nodegui\dist\components\Image\RNImage.js:94:45
    at Generator.next (<anonymous>)
    at C:\Users\me\rblxRP\node_modules\@nodegui\react-nodegui\dist\components\Image\RNImage.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (C:\Users\me\rblxRP\node_modules\@nodegui\react-nodegui\dist\components\Image\RNImage.js:4:12)
    at getLoadedPixmap (C:\Users\me\rblxRP\node_modules\@nodegui\react-nodegui\dist\components\Image\RNImage.js:91:12)

To Reproduce

(<Image src={resolve(__dirname, "..","assets","logo.png")}></Image>)

Expected behavior The image loads like it does on other platforms.

Desktop (please complete the following information):

Additional context I am not using Webpack or any other packer.