-
-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quickstart app created with "jaspr build" does not work. #207
Comments
I tested with static and client side modes and received the same errors: Select a rendering mode: Client side: Select a rendering mode: [CLI] Running jaspr in client rendering mode. dart:core _SimpleUri.resolve |
@SamHjelmfelt I think this is a duplicate of #58 (also #186) Are you trying to open the development server in Safari? If so, try Chrome - it should work. |
Yes, I was on Safari. I will try Chrome in a few hours. |
Closing this as a duplicate for now. If you are still having the same issue on chrome please reopen. |
Description
Quickstart fails to produce a working app. The stateful Counter component does not work. From a UI perspective, the buttons do nothing. Logs are below.
Steps To Reproduce
jaspr create jaspr_site
Select a rendering mode:
❯ ◉ static: Build a statically pre-rendered site.
◯ server: Build a server-rendered site.
Select a rendering mode:ely client-rendered site.
◯ static: Build a statically pre-rendered site.
❯ ◉ server: Build a server-rendered site.
Select a rendering mode: server: Build a server-rendered site.
(Recommended) Enable automatic hydration on the client? (Y/n) Yes
Setup routing for different pages of your site? (Y/n) Yes
(Recommended) Use multi-page (server-side) routing? Choosing [no] sets up a single-page application with client-side routing instead. (Y/(Recommended) Use multi-page (server-side) routing? Choosing [no] sets up a single-page application with client-side routing instead. (Y/n) Yes
Setup Flutter web embedding? (y/N) No
Enable support for using Flutter web plugins in your project? (Y/n) Yes
Use a custom backend package or framework for the server part of your project? (y/N) Yes
Select a backend framework:
❯ ◉ Shelf: An official and well-supported minimal server package by the Dart Team.
Select a backend framework: Shelf: An official and well-supported minimal server package by the Dart Team.
✓ Generated 25 file(s) (0.1s)
✓ [CLI] (11.0s)
[CLI] Created project jaspr_site! In order to get started, run the following commands:
[CLI]
[CLI] cd jaspr_site
[CLI] jaspr serve
Output:
[CLI] Running jaspr in server rendering mode.
✓ [CLI] Done building web assets. (17.1s)
✓ [CLI] Server started. (7ms)
[SERVER] The Dart VM service is listening on http://127.0.0.1:8181/4zdni6ksIJU=/
[SERVER] The Dart DevTools debugger and profiler is available at: http://127.0.0.1:8181/4zdni6ksIJU=/devtools?uri=ws://127.0.0.1:8181/4zdni6ksIJU=/ws
[SERVER] [INFO] Server hot reload is enabled.
[SERVER] Serving at http://0.0.0.0:8080
[SERVER] Request uri is http://localhost:8080/ ()
[SERVER] 2024-04-06T15:59:38.865354 0:00:00.088215 GET [200] /
[SERVER] 2024-04-06T15:59:38.962154 0:00:00.009665 GET [200] /pages/home.client.dart.js
[SERVER] 2024-04-06T15:59:38.975345 0:00:00.006295 GET [304] /packages/jaspr_web_compilers/src/dev_compiler/require.js
[SERVER] 2024-04-06T15:59:38.976436 0:00:00.018628 GET [304] /packages/jaspr_web_compilers/src/dev_compiler_stack_trace/stack_trace_mapper.dart.js
[SERVER] [ERROR] 2024-04-06 15:59:39.011284 0:00:00.001212 GET /@http://localhost:8080/pages/home.client.dart.bootstrap.js
[SERVER] FormatException: Scheme not starting with alphabetic character (at character 1)
[SERVER] @http://localhost:8080/pages/home.client.dart.bootstrap.js
[SERVER] ^
[SERVER]
[SERVER] dart:core _SimpleUri.resolve
[SERVER] package:shelf_proxy/shelf_proxy.dart 42:28 proxyHandler.
[SERVER] package:shelf_gzip/src/gzip_encoding.dart 51:44 createGzipMiddleware...
[SERVER] dart:async new Future.sync
[SERVER] package:shelf_gzip/src/gzip_encoding.dart 51:21 createGzipMiddleware..
[SERVER]
[SERVER] [ERROR] ERROR - 2024-04-06 15:59:39.021579
[SERVER] [ERROR] GET /@http://localhost:8080/pages/home.client.dart.bootstrap.js
[SERVER] [ERROR] Error thrown by handler.
[SERVER] [ERROR] FormatException: Scheme not starting with alphabetic character (at character 1)
[SERVER] [ERROR] @http://localhost:8080/pages/home.client.dart.bootstrap.js
[SERVER] [ERROR] ^
[SERVER] [ERROR]
[SERVER] [ERROR] dart:core _SimpleUri.resolve
[SERVER] [ERROR] package:shelf_proxy/shelf_proxy.dart 42:28 proxyHandler.
[SERVER] [ERROR] package:shelf_gzip/src/gzip_encoding.dart 51:44 createGzipMiddleware...
[SERVER] [ERROR] dart:async new Future.sync
[SERVER] [ERROR] package:shelf_gzip/src/gzip_encoding.dart 51:21 createGzipMiddleware..
Expected Behavior
Counter should update in the UI.
Additional Context
The text was updated successfully, but these errors were encountered: