Skip to content

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

Open
@foxt

Description

@foxt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions