0

I've created a Github Codespace, trying so serve a web app, using webdev serve.

The project is nothing more than the default web template that comes with the Dart CLI tool. I've installed Dart and the webdev tool in my codespace.

But I'm getting the following error when I try to open the web app in my browser using port forwarding.

ERROR - 2023-02-12 14:34:40.430078
GET /@https://xxxxxxxxxxxx-sturdy-meme-ggxggwwwv7fwxj-8080.preview.app.github.dev/main.dart.bootstrap.js
Error thrown by handler.
FormatException: Scheme not starting with alphabetic character (at character 1)
@https://xxxxxxxxxxxx-sturdy-meme-ggxggwwwv7fwxj-8080.preview.app.github.dev/ma...
^

dart:core                                          _SimpleUri.resolve
package:shelf_proxy/shelf_proxy.dart 42:28         proxyHandler.<fn>
package:shelf/src/cascade.dart 77:53               Cascade.handler.<fn>.<fn>
===== asynchronous gap ===========================
package:shelf/shelf_io.dart 91:9                   serveRequests.<fn>.<fn>
===== asynchronous gap ===========================
package:shelf/shelf_io.dart 89:3                   serveRequests
package:webdev/src/util.dart 22:5                  serveHttpRequests.<fn>
package:stack_trace                                Chain.capture
package:webdev/src/util.dart 21:16                 serveHttpRequests
package:webdev/src/serve/webdev_server.dart 181:5  WebDevServer.start

The HTML is served, but the compiled js file can't be found and the development server crashes.

What can I do to fix this?

weenzeel
  • 797
  • 5
  • 17

0 Answers0