schultek / jaspr

Modern web framework for building websites in Dart. Supports SPAs and SSR.
https://jasprpad.schultek.de
MIT License
1k stars 59 forks source link

Platform Imports are not working #152

Closed cybertheory closed 4 months ago

cybertheory commented 6 months ago

Description

Tried to import dart:html with platform imports from the examples of the docs and they are not working. image Screenshot 2024-01-09 at 8 38 14 PM

Steps To Reproduce

  1. Activate jaspr through dart pub global activate jaspr_cli
  2. Create a new project with jaspr create -t ... my_app
  3. Use conditional imports to import window from dart:html as per documentation
  4. See error

Expected Behavior

should import and build, and autogen imports.dart

Additional Context

schultek commented 6 months ago

The .imports.dart file is first generated when you run jaspr serve.

cybertheory commented 6 months ago

Interesting anyway to do this when we create the jaspr project? And just add to it?

cybertheory commented 6 months ago

It doesn't seem to be working, but its still doing something, will check back in Screenshot 2024-01-12 at 8 46 48 AM

cybertheory commented 6 months ago

yeah just kept on going :(

schultek commented 4 months ago

Closing this as I think its solved by now. Feel free to reopen if you still have problems.

walsha2 commented 4 months ago

@cybertheory did you ever get this to work?