khamidjon-khamidov / flutter_telegram_web_app

MIT License
19 stars 15 forks source link

Error during build #34

Open baetacoin opened 1 month ago

baetacoin commented 1 month ago

I get several build errors each time i add this package. i have followed all instructions on the readme page but i cant run my app when this plugin is added.

../../.pub-cache/hosted/pub.dev/js-0.7.1/lib/js.dart:8:1: Error: Can't access platform private library. export 'dart:_js_annotations' ../../.pub-cache/hosted/pub.dev/js-0.7.1/lib/js.dart:8:1: Error: Dart library 'dart:_js_annotations' is not available on this platform. export 'dart:_js_annotations' The unavailable library 'dart:_js_annotations' is imported through these packages:

khamidjon-khamidov commented 1 month ago

@baetacoin are you building it for browser? You can't build this package for other platforms

baetacoin commented 1 month ago

Thanks for the response. I am building for web "flutter run -d chrome" gives me such error. I created a new flutter project, added this package and it gives me this error. I don't know if there are other steps i need to follow not mentioned in the redme page

AbbosSaidov commented 1 month ago

I have exactly the same error in chrome