Skip to content
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

Builder error: Unable to locate required sdk resource build_web_compilers #368

Open
Yoeri-z opened this issue Jan 28, 2025 · 2 comments
Open
Labels
bug Something isn't working

Comments

@Yoeri-z
Copy link

Yoeri-z commented Jan 28, 2025

Description
I get this error when trying to jaspr serve my application.

$ ~/dev/minimanage jaspr serve 
[CLI] Running jaspr in server rendering mode.
[BUILDER] [ERROR] Bad state: Unable to locate required sdk resource build_web_compilers|lib/src/dev_compiler/dart_sdk.js

Steps To Reproduce

  1. go into the terminal and clone the github repository of my project:
git clone https://github.com/Yoeri-z/minimanage.git minimanage
  1. go into the project:
cd minimanage
  1. run jaspr serve
jaspr serve

The error should be consistently reproducible like this

Doctor Output

[✓] Jaspr CLI (Version 0.17.0)
  • Dart Version 3.6.1 (stable) (Tue Jan 7 09:50:00 2025 -0800) on "linux_x64" at /home/yoeri/snap/flutter/common/flutter/bin/cat
  • Running on linux Linux 5.15.0-130-generic #140-Ubuntu SMP Wed Dec 18 17:59:53 UTC 2024 - Locale en_US.UTF-8
  • Analytics: Enabled

[✓] Current Project
  • Dependencies on core packages:
    • jaspr: ^0.17.0
    • jaspr_builder: ^0.17.0 (dev)
    • jaspr_router: ^0.6.1
  • Rendering mode: server
  • Uses jaspr compilers: false
  • Uses flutter embedding: false

Expected Behavior

I expect the jaspr builder to not crash

Additional Context
I am using drift alongside jasper so there are two packages using build_runner, this shouldnt be an issue but i dont know
what else could be causing it

@Yoeri-z Yoeri-z added the bug Something isn't working label Jan 28, 2025
@schultek
Copy link
Owner

Can you try setting up a pure dart web project WITHOUT jaspr and see if the error is also there? Because this looks like its coming from build_web_compilers and not jaspr

@Yoeri-z
Copy link
Author

Yoeri-z commented Jan 29, 2025

Can you try setting up a pure dart web project WITHOUT jaspr and see if the error is also there? Because this looks like its coming from build_web_compilers and not jaspr

The default jaspr project works but after i make some changes this starts happening and it seems to be irreversible. (If I remove any changes I made the issue stays). Its been really hard to pinpoint what step exactly causes it I'll keep trying though.
The interesting thing is that the issue is replicable so it isn't something with my dart installation.

I can try setting up a pure dart web application but I don't know how to do that yet so will take me some time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants