react-nodegui icon indicating copy to clipboard operation
react-nodegui copied to clipboard

Bad URL Protocol C: when running on Windows.

Open foxt opened this issue 3 years ago • 0 comments

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):

  • OS: [e.g. Mac, Linux or Windows] Windows
  • NodeGUI version 0.35.0
  • React NodeGUI version 0.12.0
  • OS Version Windows 10 1809

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

foxt avatar Aug 17 '21 22:08 foxt