If I want to run debug or normal run, I keep getting since changing the facing name and doing App-check flutter this in VS CODE Windows:
"Error: Expected a value of type 'JavaScriptObject', but got one of type 'TypeErrorImpl'\n at Object.throw_ [as throw]
on flutter whenever I launch chrome, but doing firebase deploy works fine, so I'm currently having to test in Production and that should not be the case. Currently using a Windows PC, but I plan on moving to my Mac ASAP.
Steps to reproduce
Updated flutter dependencies to their newest stage and also updated flutter version 3.16.9 of the stable channel.
Having firebase_options.dart since day one and haven't changed them since the start of the Firebase project.
Changed firebase project to have Public-facing name and also registered the web app with RECAPTCHA Enterprise (I suspect that's the trigger).
I get :
Error: Expected a value of type 'JavaScriptObject', but got one of type 'TypeErrorImpl' at Object.throw_ [as throw] from dart sdk_js,
but it is actually found here :
globalContext.callMethod( 'ff_trigger_$windowVar'.toJS, (JSAny module) { globalContext[windowVar] = module; globalContext.delete('ff_trigger_$windowVar'.toJS); completer.complete(); }.toJS, );
Expected behavior
Usually the Chrome/Edge debugger runs smoothly on VS Code in localhost.
Flutter doctor
Run flutter doctor and paste the output below:
Click To Expand
```
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.16.9, on Microsoft Windows [Version 10.0.22631.3007], locale nb-NO)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
X cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdline-tools;latest"`
See https://developer.android.com/studio/command-line for more details.
X Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.8.1)
[√] Android Studio (version 2023.1)
[√] VS Code (version 1.86.0)
[√] Connected device (3 available)
[√] Network resources
```
There is no need for Android, but will be testing that soon
Flutter dependencies
Run flutter pub deps -- --style=compact and paste the output below:
Bug report
Describe the bug
If I want to run debug or normal run, I keep getting since changing the facing name and doing App-check flutter this in VS CODE Windows:
"Error: Expected a value of type 'JavaScriptObject', but got one of type 'TypeErrorImpl'\n at Object.throw_ [as throw]
on flutter whenever I launch chrome, but doingfirebase deploy
works fine, so I'm currently having to test in Production and that should not be the case. Currently using a Windows PC, but I plan on moving to my Mac ASAP.Steps to reproduce
Error: Expected a value of type 'JavaScriptObject', but got one of type 'TypeErrorImpl' at Object.throw_ [as throw] from dart sdk_js
,but it is actually found here :
globalContext.callMethod( 'ff_trigger_$windowVar'.toJS, (JSAny module) { globalContext[windowVar] = module; globalContext.delete('ff_trigger_$windowVar'.toJS); completer.complete(); }.toJS, );
Expected behavior
Usually the Chrome/Edge debugger runs smoothly on VS Code in localhost.
Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
``` Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 3.16.9, on Microsoft Windows [Version 10.0.22631.3007], locale nb-NO) [√] Windows Version (Installed version of Windows is version 10 or higher) [!] Android toolchain - develop for Android devices (Android SDK version 34.0.0) X cmdline-tools component is missing Run `path/to/sdkmanager --install "cmdline-tools;latest"` See https://developer.android.com/studio/command-line for more details. X Android license status unknown. Run `flutter doctor --android-licenses` to accept the SDK licenses. See https://flutter.dev/docs/get-started/install/windows#android-setup for more details. [√] Chrome - develop for the web [√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.8.1) [√] Android Studio (version 2023.1) [√] VS Code (version 1.86.0) [√] Connected device (3 available) [√] Network resources ``` There is no need for Android, but will be testing that soonFlutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below:Click To Expand
``` Dart SDK 3.2.6 Flutter SDK 3.16.9 [our app] 1.0.0+1 dependencies: - animated_widgets 1.1.0 [flutter vector_math] - cached_network_image 3.3.1 [cached_network_image_platform_interface cached_network_image_web flutter flutter_cache_manager octo_image] - clipboard 0.1.3 [flutter] - cloud_firestore 4.15.0 [cloud_firestore_platform_interface cloud_firestore_web collection firebase_core firebase_core_platform_interface flutter meta] - cupertino_icons 1.0.6 - firebase_app_check 0.2.1+9 [firebase_app_check_platform_interface firebase_app_check_web firebase_core firebase_core_platform_interface flutter] - firebase_auth 4.17.0 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta] - firebase_core 2.25.0 [firebase_core_platform_interface firebase_core_web flutter meta] - firebase_storage 11.6.1 [firebase_core firebase_core_platform_interface firebase_storage_platform_interface firebase_storage_web flutter] - flutter 0.0.0 [characters collection material_color_utilities meta vector_math web sky_engine] - flutter_dash 1.0.0 [flutter] - flutter_dotenv 5.1.0 [flutter] - flutter_emoji 2.5.1 [characters http] - flutter_html 3.0.0-beta.2 [html csslib collection list_counter flutter] - flutter_login 5.0.0 [another_flushbar another_transformer_page_view flutter font_awesome_flutter intl_phone_number_input phone_numbers_parser provider quiver sign_in_button url_launcher] - flutter_markdown 0.6.18+3 [flutter markdown meta path] - flutter_stripe 10.0.0 [flutter meta stripe_android stripe_ios stripe_platform_interface] - flutter_svg 2.0.9 [flutter vector_graphics vector_graphics_codec vector_graphics_compiler] - flutter_swipe_action_cell 3.1.3 [flutter] - google_fonts 6.1.0 [flutter http path_provider crypto] - http 1.2.0 [async http_parser meta web] - image_picker 1.0.7 [flutter image_picker_android image_picker_for_web image_picker_ios image_picker_linux image_picker_macos image_picker_platform_interface image_picker_windows] - image_picker_for_web 3.0.2 [flutter flutter_web_plugins image_picker_platform_interface mime] - intl 0.19.0 [clock meta path] - markdown_widget 2.3.2+3 [flutter markdown highlight flutter_highlight url_launcher visibility_detector scroll_to_index] - path 1.8.3 - provider 6.1.1 [collection flutter nested] - redis 4.0.0 - uni_links 0.5.1 [flutter uni_links_platform_interface uni_links_web] - url_launcher 6.2.4 [flutter url_launcher_android url_launcher_ios url_launcher_linux url_launcher_macos url_launcher_platform_interface url_launcher_web url_launcher_windows] - visibility_detector 0.4.0+2 [flutter] dev dependencies: - flutter_test 0.0.0 [flutter test_api matcher path fake_async clock stack_trace vector_math async boolean_selector characters collection material_color_utilities meta source_span stream_channel string_scanner term_glyph web] transitive dependencies: - _flutterfire_internals 1.3.17 [collection firebase_core firebase_core_platform_interface flutter meta] - another_flushbar 1.12.30 [flutter] - another_transformer_page_view 2.0.1 [flutter] - args 2.4.2 - async 2.11.0 [collection meta] - boolean_selector 2.1.1 [source_span string_scanner] - cached_network_image_platform_interface 4.0.0 [flutter flutter_cache_manager] - cached_network_image_web 1.1.1 [cached_network_image_platform_interface flutter flutter_cache_manager] - characters 1.3.0 - clock 1.1.1 - cloud_firestore_platform_interface 6.1.1 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface] - cloud_firestore_web 3.10.0 [_flutterfire_internals cloud_firestore_platform_interface collection firebase_core firebase_core_web flutter flutter_web_plugins js] - collection 1.18.0 - cross_file 0.3.3+8 [meta web] - crypto 3.0.3 [typed_data] - csslib 0.17.3 [source_span] - equatable 2.0.5 [collection meta] - fake_async 1.3.1 [clock collection] - ffi 2.1.0 - file 6.1.4 [meta path] - file_selector_linux 0.9.2+1 [cross_file file_selector_platform_interface flutter] - file_selector_macos 0.9.3+3 [cross_file file_selector_platform_interface flutter] - file_selector_platform_interface 2.6.2 [cross_file flutter http plugin_platform_interface] - file_selector_windows 0.9.3+1 [cross_file file_selector_platform_interface flutter] - firebase_app_check_platform_interface 0.1.0+11 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface] - firebase_app_check_web 0.1.0+11 [_flutterfire_internals firebase_app_check_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js] - firebase_auth_platform_interface 7.1.0 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface] - firebase_auth_web 5.9.0 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser js meta web] - firebase_core_platform_interface 5.0.0 [collection flutter flutter_test meta plugin_platform_interface] - firebase_core_web 2.11.0 [firebase_core_platform_interface flutter flutter_web_plugins js meta web] - firebase_storage_platform_interface 5.1.4 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface] - firebase_storage_web 3.6.18 [_flutterfire_internals async firebase_core firebase_core_web firebase_storage_platform_interface flutter flutter_web_plugins http js meta] - fixnum 1.1.0 - flutter_cache_manager 3.3.1 [clock collection file flutter http path path_provider rxdart sqflite uuid] - flutter_highlight 0.7.0 [flutter highlight] - flutter_plugin_android_lifecycle 2.0.17 [flutter] - flutter_web_plugins 0.0.0 [flutter characters collection material_color_utilities meta vector_math web] - font_awesome_flutter 10.7.0 [flutter] - freezed_annotation 2.4.1 [collection json_annotation meta] - highlight 0.7.0 [collection] - html 0.15.4 [csslib source_span] - http_parser 4.0.2 [collection source_span string_scanner typed_data] - image_picker_android 0.8.9+3 [flutter flutter_plugin_android_lifecycle image_picker_platform_interface] - image_picker_ios 0.8.9+1 [flutter image_picker_platform_interface] - image_picker_linux 0.2.1+1 [file_selector_linux file_selector_platform_interface flutter image_picker_platform_interface] - image_picker_macos 0.2.1+1 [file_selector_macos file_selector_platform_interface flutter image_picker_platform_interface] - image_picker_platform_interface 2.9.3 [cross_file flutter http plugin_platform_interface] - image_picker_windows 0.2.1+1 [file_selector_platform_interface file_selector_windows flutter image_picker_platform_interface] - intl_phone_number_input 0.7.4 [flutter libphonenumber_plugin equatable collection] - js 0.6.7 [meta] - json_annotation 4.8.1 [meta] - libphonenumber_platform_interface 0.4.2 [flutter plugin_platform_interface] - libphonenumber_plugin 0.3.3 [flutter flutter_web_plugins libphonenumber_platform_interface libphonenumber_web] - libphonenumber_web 0.3.2 [flutter flutter_web_plugins js libphonenumber_platform_interface] - list_counter 1.0.2 - markdown 7.2.1 [args meta] - matcher 0.12.16 [async meta stack_trace term_glyph test_api] - material_color_utilities 0.5.0 [collection] - meta 1.10.0 - mime 1.0.5 - nested 1.0.0 [flutter] - octo_image 2.0.0 [flutter] - path_parsing 1.0.1 [vector_math meta] - path_provider 2.1.2 [flutter path_provider_android path_provider_foundation path_provider_linux path_provider_platform_interface path_provider_windows] - path_provider_android 2.2.2 [flutter path_provider_platform_interface] - path_provider_foundation 2.3.2 [flutter path_provider_platform_interface] - path_provider_linux 2.2.1 [ffi flutter path path_provider_platform_interface xdg_directories] - path_provider_platform_interface 2.1.2 [flutter platform plugin_platform_interface] - path_provider_windows 2.2.1 [ffi flutter path path_provider_platform_interface win32] - petitparser 6.0.2 [meta] - phone_numbers_parser 8.1.0 [meta] - platform 3.1.4 - plugin_platform_interface 2.1.8 [meta] - quiver 3.2.1 [matcher] - rxdart 0.27.7 - scroll_to_index 3.0.1 [flutter] - sign_in_button 3.2.0 [flutter font_awesome_flutter] - sky_engine 0.0.99 - source_span 1.10.0 [collection path term_glyph] - sprintf 7.0.0 - sqflite 2.3.2 [flutter sqflite_common path] - sqflite_common 2.5.3 [synchronized path meta] - stack_trace 1.11.1 [path] - stream_channel 2.1.2 [async] - string_scanner 1.2.0 [source_span] - stripe_android 10.0.0 [flutter] - stripe_ios 10.0.0 [flutter] - stripe_platform_interface 10.0.0 [flutter freezed_annotation json_annotation meta plugin_platform_interface] - synchronized 3.1.0+1 - term_glyph 1.2.1 - test_api 0.6.1 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph] - typed_data 1.3.2 [collection] - uni_links_platform_interface 1.0.0 [flutter plugin_platform_interface] - uni_links_web 0.1.0 [flutter flutter_web_plugins uni_links_platform_interface] - url_launcher_android 6.2.2 [flutter url_launcher_platform_interface] - url_launcher_ios 6.2.4 [flutter url_launcher_platform_interface] - url_launcher_linux 3.1.1 [flutter url_launcher_platform_interface] - url_launcher_macos 3.1.0 [flutter url_launcher_platform_interface] - url_launcher_platform_interface 2.3.1 [flutter plugin_platform_interface] - url_launcher_web 2.2.3 [flutter flutter_web_plugins url_launcher_platform_interface web] - url_launcher_windows 3.1.1 [flutter url_launcher_platform_interface] - uuid 4.3.3 [crypto sprintf meta fixnum] - vector_graphics 1.1.9+2 [flutter vector_graphics_codec] - vector_graphics_codec 1.1.9+2 - vector_graphics_compiler 1.1.9+2 [args meta path_parsing xml vector_graphics_codec path] - vector_math 2.1.4 - web 0.3.0 - win32 5.2.0 [ffi] - xdg_directories 1.0.4 [meta path] - xml 6.5.0 [collection meta petitparser] ```