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

Not working on Windows #167

Open
Scylla2020 opened this issue Feb 25, 2022 · 4 comments
Open

Not working on Windows #167

Scylla2020 opened this issue Feb 25, 2022 · 4 comments

Comments

@Scylla2020
Copy link

I have just tried using the package with the flutter demo counter app and got an error
error G9AFD0082: 'Key' is imported from both 'package:flutter/src/foundation/key.dart' and 'package:puppeteer/src/page/keyboard.dart'.

@Scylla2020 Scylla2020 changed the title Not working on WIndows Not working on Windows Feb 25, 2022
@Scylla2020
Copy link
Author

After removing all references to Key the app runs but puppeteer code doesnt execute. No browser pops up and no errors show

@andrebadini
Copy link

Same issue here. > After removing all references to Key the app runs but puppeteer code doesnt execute. No browser pops up and no errors show

@xvrh
Copy link
Owner

xvrh commented Feb 16, 2023

You can disambiguate the Key class by using something like:

import 'package:flutter/widgets.dart' hide Key;
import 'package:flutter/widgets.dart' as flutter;
import 'package:puppeteer/puppeteer.dart' hide Key;
import 'package:puppeteer/puppeteer.dart' as puppeteer;

void main() {
  var flutterKey = flutter.Key('key'); // Flutter Key
  puppeteer.Key.meta; // Puppeteer key
}

@xvrh
Copy link
Owner

xvrh commented Feb 16, 2023

but puppeteer code doesnt execute. No browser pops up and no errors show

If someone can share a full reproducible example, I can take a look.

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

3 participants