-
-
Notifications
You must be signed in to change notification settings - Fork 978
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]: ERR_FILE_NOT_FOUND: package_info_plus not working on Flutter web deployed as chrome extension #1409
Comments
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days |
Commenting to keep it active! |
I'm facing the same issue when I deploy a flutter app as a CDN resource, i.e. just a It would be nice to have a way to parameterize that baseUri, but I can't think of how it can fit in the platform agnostic interface. If I find a workaround I'll post it here. |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days |
This comment was marked as off-topic.
This comment was marked as off-topic.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days |
This comment was marked as off-topic.
This comment was marked as off-topic.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days |
This comment was marked as off-topic.
This comment was marked as off-topic.
Would be providing an optional parameter in (same as I asked here: #2732 (comment)) |
Hi, in this PR #2733 there is a potential fix for this issue. It has been merged to |
I checked with the latest version of packge_info_plus and it is working for me with the example code I gave above. I checked with your branch but I am not able to compile and run. Dependencydependencies:
package_info_plus:
git:
url: https://github.com/AriasBros/plus_plugins.git
path: packages/package_info_plus/package_info_plus
ref: fix/issue-2732 Error
|
You'll have to do the same with the |
Ah! I see. That makes sense! I tried that and it seems to be working just fine! |
Thanks a lot for checking @BirjuVachhani ! Can I ask, did you use the |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days |
Platform
Web (chrome & Edge)
Plugin
package_info_plus
Version
3.0.2 (latest)
Flutter SDK
3.3.10
Steps to reproduce
Run the sample code on flutter web deployed as chrome extension
Deploying as chrome extension:
flutter build web --release --web-renderer html --csp
chrome://extensions
oredge://extensions
).FILE_NOT_FOUND
in the console and it never shows the version.If the same thing is done with a normal run of the project with
flutter run web
then it works perfectly. It just doesn't work on web builds deployed as browser extension.According to the error in. the console, it seems like the base uri for
version.json
file is incorrect in this case.Code Sample
Flutter Doctor
Checklist before submitting a bug
flutter pub upgrade
flutter clean
The text was updated successfully, but these errors were encountered: