Closed cbhernan closed 7 months ago
Hi @cbhernan, thanks for raising this. We're aware of the issue: https://github.com/auth0/auth0-flutter/issues/368, and are working on a solution.
@Widcket Thank you for the update! My apologies for opening a duplicate issue!
Checklist
Description
flutter build web
is failing with an error messageError: No named parameter with the name 'parameters'.
Reproduction
Reproduced on Sample App:
pubspec.yaml
so thatauth0_flutter
uses version1.4.0
flutter pub get
, runflutter config --enable-web
flutter build web
Same error encountered on my local project and GH Action. Workaround is to downgrade.
Additional context
Full error logs
``` Target dart2js failed: ProcessException: Process exited abnormally: ../../../AppData/Local/Pub/Cache/hosted/pub.dev/auth0_flutter-1.4.0/lib/auth0_flutter_web.dart:73:13: Error: No named parameter with the name 'parameters'. parameters: parameters), ^^^^^^^^^^ ../../../AppData/Local/Pub/Cache/hosted/pub.dev/auth0_flutter_platform_interface-1.2.1/lib/src/web/client_options.dart:108:3: Info: Found this candidate, but the arguments don't match. ClientOptions( ^^^^^^^^^^^^^ ../../../AppData/Local/Pub/Cache/hosted/pub.dev/auth0_flutter-1.4.0/lib/src/web/extensions/client_options_extensions.dart:31:19: Error: The getter 'parameters' isn't defined for the class 'ClientOptions'. - 'ClientOptions' is from 'package:auth0_flutter_platform_interface/src/web/client_options.dart' ('../../../AppData/Local/Pub/Cache/hosted/pub.dev/auth0_flutter_platform_interface-1.2.1/lib/src/web/client_options.dart'). parameters))); ^^^^^^^^^^ Error: Compilation failed. Command: C:\..\..\Downloads\flutter_windows_3.10.5-stable\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev C:\..\..\Downloads\flutter_windows_3.10.5-stable\flutter\bin\cache\dart-sdk\bin\snapshots\dart2js.dart.snapshot --platform-binaries=C:\..\..\Downloads\flutter_windows_3.10.5-stable\flutter\bin\cache\flutter_web_sdk\kernel --invoker=flutter_tool -Ddart.vm.product=true -DFLUTTER_WEB_AUTO_DETECT=true -DFLUTTER_WEB_CANVASKIT_URL=https://www.gstatic.com/flutter-canvaskit/54a7145303f0dd9d0f93424a2e124eb4abef5091/ --native-null-assertions --no-source-maps -o C:\..\..\sample\auth0-flutter-samples\sample\.dart_tool\flutter_build\8888fad93778815d38b8bdad056f294a\app.dill --packages=.dart_tool/package_config.json --cfe-only C:\..\..\sample\auth0-flutter-samples\sample\.dart_tool\flutter_build\8888fad93778815d38b8bdad056f294a\main.dart #0 RunResult.throwException (package:flutter_tools/src/base/process.dart:127:5) #1 _DefaultProcessUtils.run (package:flutter_tools/src/base/process.dart:280:19)auth0_flutter version
1.4.0
Flutter version
3.16.3
Platform
Web
Platform version(s)
No response