Closed usernamekk closed 4 years ago
Add the following as dependency in you pubspec.yaml
shared: path: _shared
Closing for now. Please let us know if you still have this issue.
Hi there, thank you so much for open-sourcing all of this. I am having a hard time, getting this repo [1] running and hope very much you guys can me with this.
/Users/xyz/tools/flutter/bin/flutter doctor --verbose
[✓] Flutter (Channel dev, v1.14.3, on Mac OS X 10.15.2 19C57, locale en-AT)
• Flutter version 1.14.3 at /Users/xyz/tools/flutter
• Framework revision b5a23fdf5b (4 days ago), 2020-01-22 02:11:09 +0800
• Engine revision c15efb9231
• Dart version 2.8.0 (build 2.8.0-dev.3.0 f910a7575f)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/xyz/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.3.1, Build version 11C504
• CocoaPods version 1.8.4
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 42.1.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[!] IntelliJ IDEA Ultimate Edition (version 2019.3.2)
• IntelliJ at /Applications/IntelliJ IDEA.app
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.dev/intellij-setup/#installing-the-plugins
[✓] VS Code (version 1.40.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.7.1
[✓] Connected device (2 available)
• Chrome • chrome • web-javascript • Google Chrome 79.0.3945.130
• Web Server • web-server • web-javascript • Flutter Tools
! Doctor found issues in 1 category.
Process finished with exit code 0
$ flutter run -d chrome
Launching lib/main.dart on Web Server in debug mode...
Building application for the web...
AssetNotFoundException: indie_3d|lib/main_web_entrypoint.ddc.js
Unable to find modules for some sources, this is usually the result of either a
bad import, a missing dependency in a package (or possibly a dev_dependency
needs to move to a real dependency), or a build failure (if importing a
generated file).
Please check the following imports:
`import 'package:path/path.dart' as path;` from shared|lib/ui/widget_model.dart at 5:1
AssetNotFoundException: shared|lib/ui/widget_model.ddc.dill
Unable to find modules for some sources, this is usually the result of either a
bad import, a missing dependency in a package (or possibly a dev_dependency
needs to move to a real dependency), or a build failure (if importing a
generated file).
Please check the following imports:
AssetNotFoundException: shared|lib/ui/widget_model.ddc.dill
Failed after 189ms
Finished with error: Failed to build application for the Web.
1: https://github.com/gskinnerTeam/flutter_vignettes/tree/master/vignettes/indie_3d
dependencies in shared path is not working