Closed alex-wenner closed 1 year ago
When using the sample application found here
TypeError: Cannot read properties of undefined (reading 'Auth0Client') packages/auth0_flutter/src/web/auth0_flutter_plugin_real.dart 30:25 initialize dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 84:54 runBody dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 123:5 _async packages/auth0_flutter/src/web/auth0_flutter_plugin_real.dart 27:26 initialize packages/auth0_flutter/auth0_flutter_web.dart 55:44 onLoad dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 84:54 runBody dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 123:5 _async packages/auth0_flutter/auth0_flutter_web.dart 40:30 onLoad packages/sample/main.dart 39:5 initState packages/flutter/src/widgets/framework.dart 5219:55 [_firstBuild] packages/flutter/src/widgets/framework.dart 5062:5 mount packages/flutter/src/widgets/framework.dart 3971:15 inflateWidget packages/flutter/src/widgets/framework.dart 3708:18 updateChild packages/flutter/src/widgets/framework.dart 5111:16 performRebuild packages/flutter/src/widgets/framework.dart 4805:7 rebuild packages/flutter/src/widgets/framework.dart 5068:5 [_firstBuild] packages/flutter/src/widgets/framework.dart 5062:5 mount packages/flutter/src/widgets/framework.dart 3971:15 inflateWidget packages/flutter/src/widgets/framework.dart 3708:18 updateChild packages/flutter/src/widgets/framework.dart 5111:16 performRebuild packages/flutter/src/widgets/framework.dart 5251:11 performRebuild packages/flutter/src/widgets/framework.dart 4805:7 rebuild packages/flutter/src/widgets/framework.dart 5068:5 [_firstBuild] packages/flutter/src/widgets/framework.dart 5242:11 [_firstBuild] packages/flutter/src/widgets/framework.dart 5062:5 mount packages/flutter/src/widgets/framework.dart 3971:15 inflateWidget packages/flutter/src/widgets/framework.dart 3708:18 updateChild packages/flutter/src/widgets/framework.dart 5111:16 performRebuild packages/flutter/src/widgets/framework.dart 4805:7 rebuild packages/flutter/src/widgets/framework.dart 5068:5 [_firstBuild] packages/flutter/src/widgets/framework.dart 5062:5 mount packages/flutter/src/widgets/framework.dart 3971:15 inflateWidget packages/flutter/src/widgets/framework.dart 3708:18 updateChild packages/flutter/src/widgets/framework.dart 5111:16 performRebuild packages/flutter/src/widgets/framework.dart 4805:7 rebuild packages/flutter/src/widgets/framework.dart 5068:5 [_firstBuild] packages/flutter/src/widgets/framework.dart 5062:5 mount packages/flutter/src/widgets/framework.dart 3971:15 inflateWidget packages/flutter/src/widgets/framework.dart 3708:18 updateChild packages/flutter/src/widgets/binding.dart 1240:16 [_rebuild] packages/flutter/src/widgets/binding.dart 1209:5 mount packages/flutter/src/widgets/binding.dart 1156:16 <fn> packages/flutter/src/widgets/framework.dart 2720:19 buildScope packages/flutter/src/widgets/binding.dart 1155:12 attachToRenderTree packages/flutter/src/widgets/binding.dart 987:24 attachRootWidget packages/flutter/src/widgets/binding.dart 968:7 <fn> dart-sdk/lib/_internal/js_dev_runtime/private/isolate_helper.dart 48:19 internalCallback Invalid argument(s): Auth0Client has not been initialized
Pkg: auth0_flutter: 1.2.1
Flutter 3.10.5 • channel stable • https://github.com/flutter/flutter.git Framework • revision 796c8ef792 (4 weeks ago) • 2023-06-13 15:51:02 -0700 Engine • revision 45f6e00911 Tools • Dart 3.0.5 • DevTools 2.23.1
flutter create frontend
No response
1.2.1
3.10.5
Web
Using Edge Emulator on Windows 11
Completely missed this line somehow in the index.html
<script src="https://cdn.auth0.com/js/auth0-spa-js/2.0/auth0-spa-js.production.js" defer></script>
Sorry about that!
Checklist
Description
When using the sample application found here
Error
Version
Tried
Reproduction
flutter create frontend
Additional context
No response
auth0_flutter version
1.2.1
Flutter version
3.10.5
Platform
Web
Platform version(s)
Using Edge Emulator on Windows 11