You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code must be added to the root pubspec.yaml file
dev_dependencies:
build_runner: ^2.4.14
Otherwise, the following error will be reported
dart pub -C modules/basic/assets run build_runner build --delete-conflicting-outputs
Deprecated. Use `dart run` instead.
Package "build_runner" is not an immediate dependency.
Cannot run executables in transitive dependencies.
make: *** [asset] Error 65
Run the following command in the root directory. Code cannot be generated in the module directory.
dart pub -C modules/basic/assets run build_runner build --delete-conflicting-outputs
The text was updated successfully, but these errors were encountered:
build_runner does not have any direct support for pub workspaces - you need to still use it as normal (add the dependency to each sub-packages pubspec etc).
It does support workspaces in the sense that it still works, but it doesn't try to share work across the workspace or anything like that, and each package still has to have the dependency.
pubspec.yaml
fileOtherwise, the following error will be reported
The text was updated successfully, but these errors were encountered: