Skip to content
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

google_one_tap_sign_in.dart:4:8: Error: Not found: 'dart:ffi' #3

Open
ToddHerron opened this issue Apr 18, 2022 · 1 comment
Open

Comments

@ToddHerron
Copy link

Package version: google_sign_in_web 0.10.1

Problem:
When I try to run my flutter web app, I get the following error:

../../flutter/.pub-cache/hosted/pub.dartlang.org/google_one_tap_sign_in-1.0.3/lib/google_one_tap_sign_in.dart:4:8: Error: Not found: 'dart:ffi'
import 'dart:ffi';
       ^
Waiting for connection from debug service on Chrome...            152.1s
Failed to compile application.

Even though pub.dev says the package doesn't support flutter web, it looks like from the package ChangeLog that flutter web has been supported since version 1.0.0 (because it supports web Client Ids).

I tried running:

  • flutter clean
  • flutter packages get
  • flutter pub add ffi

and none of the above worked.

Any ideas/thoughts? Thanks in advance :)

@pyciko
Copy link

pyciko commented Jul 30, 2023

+1.
Right now, the only way to build the web app is to remove the plugin import and any code associated with it.
I understand that this plugin is android-exclusive, but there should be a way to build the web app without temporary removing all of that. Maybe making a web version that will just throw an error upon call will be sufficient, because what we actually need to achieve here is to just avoid internal ffi import.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants