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
[BUG] Project does not compile to web using 7+ version (worked fine before) #268
Comments
We didn't support the Web platform. Duplicate with #227. |
Yes you're right but they were no problem with previous version |
It's not about whether the path is working, but whether it's valid. We don't guarantee any invalid usage. |
I see, in such case it sounds like a Breaking change isn't it, project configuration must be updated from 7+ version since compilation will failed in web. Which was not the case before. I will check what i must change in my configuration. Thank you for the quick reply. |
Not really. We've already been using the |
After further investigation, you're absolutely right, this error occurs before v7, it is not a breaking change. I need to found out how i've been able to compile to web since a month without a problem until the update 🤔. Thank you again for your time. |
You can file issues against the extended image library, that would be more reasonable. |
If someone is facing the same issue, here is how i fixed it in my case: Avoid erroravoid: import 'package:wechat_assets_picker/wechat_assets_picker.dart'; try being the most accurate possible (i.e: Fix errorin the case you need to import all import 'package:wechat_assets_picker/wechat_assets_picker.dart'
if (dart.library.html) 'package:my_app/whatever_filename.dart'; in /// export `photo_manager` to avoid not found error while compiling in web
export 'package:photo_manager/photo_manager.dart';
// add all needed files that does not causes the error
export 'package:wechat_assets_picker/src/constants/config.dart';
/// Add dumb classes to import for web instead of `wechat_assets_picker` to be able to compile
class AssetPicker {
static Future<Null> pickAssets(_, {pickerConfig}) async => null;
} |
Discussed with @zmtzawqlp offline, we have some class conflicts here. Reopen for applying fixes. |
Describe the bug
Project does not compile in web using 7.0.1.
It worked fine with <7 version. There is no problem on mobile.
It looks like it is related to live pictures and extended_image_library.
Tested and found in both
7.0.0
and7.0.1
.How to reproduce
Steps to reproduce the behavior:
wechat_assets_picker: ^7.0.1
) topubspec.yaml
Failed to compile application.
error message in the logExpected behavior
Even if this plugin does not support web, project should be able to compile for web env normally, like in previous version.
Version information
Additional context
The text was updated successfully, but these errors were encountered: