dart_frog
dart_frog copied to clipboard
fix: Dependencies on paths won't be resolved
trafficstars
Description
If I use path dependencies, the project does not build.
Steps To Reproduce
- Create a new project named
shared - Open the
pubspec.yamlin the server project - Insert
dependencies:
dart_frog: ^0.1.0
shared:
path: ../shared
- See error when running
dart_frog build
Expected Behavior
A successful build.
Screenshots
-
Additional Context
-
Hi @CodeDoctorDE 👋 Thanks for opening an issue and sorry for the delayed response. I plan to address this shortly, sorry for the inconvenience!
Hmm, I created a new project but this error occurs again:
✓ Bundling sources (0.4s)
All path dependencies must be within the project.
External path dependencies detected:
• shared from ../shared
✓ Installing dependencies (0.4s)
Because flow_server depends on shared from path which doesn't exist (could not find package shared at "../shared"), version solving failed.
Created a production build!
Start the production server by running:
dart build/bin/server.dart
I used
dependencies:
shared:
path: ../shared
and all classes will be detected by dart.