warpgate: vite:html-inline-proxy - Cannot read properties of undefined (reading '0')

Hello,

I am trying to build my own Warpgate step by step according to the Contributing / building from source section. After running the command just yarn build I received the following error: [vite:html-inline-proxy] Could not load D:Rustwarpgatewarpgate-websrcgatewayindex.html?html-proxy&inline-css&index=0.css (imported by src/gateway/index.html): Cannot read properties of undefined (reading '0') error during build: TypeError: Could not load D:Rustwarpgatewarpgate-websrcgatewayindex.html?html-proxy&inline-css&index=0.css (imported by src/gateway/index.html): Cannot read properties of undefined (reading '0') at Object.load (file:///D:/Rust/warpgate/warpgate-web/node_modules/vite/dist/node/chunks/dep-67e7f8ab.js:42496:65) at file:///D:/Rust/warpgate/warpgate-web/node_modules/rollup/dist/es/shared/rollup.js:22748:40

I have looked at the issue https://github.com/vitejs/vite/issues/6372 but it seems like everything has been fixed in the latest vite version

Another issue is, can I build my warpgate on my local machine and if so, how do I configure it?

I’m building Warpgate on Windows 10.

Hope this help?

About this issue

  • Original URL
  • State: closed
  • Created 5 months ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

If you build on WSL, it’ll build a Linux binary which you can just use normally as per guide with no Windows gotchas.

To get an .exe, you need to build on Windows.

https://github.com/warp-tech/warpgate/wiki/Getting-started#setup

The .exe will be in the target/debug (target/release if you built with --release)

On Windows, you’ll need to set an explicit config path with --config

Please keep in mind that I haven’t tested it on Windows yet, so even though it should just work, there might be issues ✌️

I’ll take a look at why the frontend build isn’t working on Windows later, but for now you can just build the frontend in WSL and the rest natively