jonataslaw / getx

Open screens/snackbars/dialogs/bottomSheets without context, manage states and inject dependencies easily with Get.
MIT License
10.39k stars 1.63k forks source link

Errors with `GetPage` Class in GetX 5.0.0 Release Candidate9.2 Unable to run any project URGENT #3199

Open fisforfaheem opened 2 months ago

fisforfaheem commented 2 months ago

[web] Error: - 'GetPage' is from 'package:get/get_navigation/src/routes/get_route.dart' ('../.pub-cache/hosted/pub.dev/get-5.0.0-release-candidate-9.2/lib/get_navigation/src/routes/get_route.dart'). 2024-08-29T23:35:19Z [web] Try correcting the name to the name of an existing getter, or defining a getter or field named 'canPop'. 2024-08-29T23:35:19Z [web] 2024-08-29T23:35:19Z [web] Error: canPop: canPop ?? this.canPop, 2024-08-29T23:35:19Z [web] ^^^^^^ 2024-08-29T23:35:19Z [web] ../.pub-cache/hosted/pub.dev/get-5.0.0-release-candidate-9.2/lib/get_navigation/src/routes/get_route.dart:170:42: Error: The getter 'onPopInvoked' isn't defined for the class 'GetPage'. 2024-08-29T23:35:19Z [web] 2024-08-29T23:35:19Z [web] Error: - 'GetPage' is from 'package:get/get_navigation/src/routes/get_route.dart' ('../.pub-cache/hosted/pub.dev/get-5.0.0-release-candidate-9.2/lib/get_navigation/src/routes/get_route.dart'). 2024-08-29T23:35:19Z [web] Try correcting the name to the name of an existing getter, or defining a getter or field named 'onPopInvoked'. 2024-08-29T23:35:19Z [web] 2024-08-29T23:35:19Z [web] Error: onPopInvoked: onPopInvoked ?? this.onPopInvoked, 2024-08-29T23:35:19Z [web] ^^^^^^^^^^^^ 2024-08-29T23:35:19Z [web] 2024-08-29T23:35:25Z [android] Error: Error: Gradle task assembleDebug failed with exit code 1 2024-08-29T23:35:25Z [android] 2024-08-29T23:35:25Z [android] ✘ Preview failed to start 2024-08-29T23:35:41Z [web] Error: Unhandled exception: 2024-08-29T23:35:41Z [web] 2024-08-29T23:35:41Z [web] Error: Unsupported operation: Unsupported invalid type InvalidType() (InvalidType). Encountered while compiling file:///home/user/.pub-cache/hosted/pub.dev/get-5.0.0-release-candidate-9.2/lib/get_navigation/src/routes/get_route.dart, which contains the type: FunctionType(GetPage<GetPage.T%> Function({alignment: Alignment?, arguments: Object?, binding: BindingsInterface?, bindings: List<BindingsInterface>?, binds: List<Bind>?, canPop: bool?, children: Object?, completer: Object?, curve: Curve?, customTransition: CustomTransition?, fullscreenDialog: bool?, gestureWidth: double Function(BuildContext)?, inheritParentPath: bool?, key: LocalKey?, maintainState: bool?, middlewares: List?, name: String?, onPopInvoked: , opaque: bool?, page: Widget Function()?, parameters: Map<String, String>?, participatesInRootNavigator: bool?, popGesture: bool?, preventDuplicates: bool?, restorationId: String?, reverseTransitionDuration: Duration?, settings: RouteSettings?, showCupertinoParallax: bool?, title: String?, transition: Transition?, transitionDuration: Duration?, unknownRoute: GetPage?})). 2024-08-29T23:35:41Z [web] #0 ProgramCompiler._typeCompilationError (package:dev_compiler/src/kernel/compiler.dart:3236) 2024-08-29T23:35:41Z [web] #1 ProgramCompiler._emitType (package:dev_compiler/src/kernel/compiler.dart:3197) 2024-08-29T23:35:41Z [web] #2 ProgramCompiler._emitClassSignature (package:dev_compiler/src/kernel/compiler.dart:1570) 2024-08-29T23:35:41Z [web] #3 ProgramCompiler._emitClassDeclaration (package:dev_compiler/src/kernel/compiler.dart:962) 2024-08-29T23:35:41Z [web] #4 ProgramCompiler._emitClass (package:dev_compiler/src/kernel/compiler.dart:819) 2024-08-29T23:35:41Z [web] #5 List.forEach (dart:core-patch/growable_array.dart:416) 2024-08-29T23:35:41Z [web] 2024-08-29T23:35:41Z [web] Error: #6 ProgramCompiler._emitLibrary (package:dev_compiler/src/kernel/compiler.dart:757) 2024-08-29T23:35:41Z [web] #7 List.forEach (dart:core-patch/growable_array.dart:416) 2024-08-29T23:35:41Z [web] #8 ProgramCompiler.emitModule (package:dev_compiler/src/kernel/compiler.dart:486) 2024-08-29T23:35:41Z [web] #9 IncrementalJavaScriptBundler.compile (package:frontend_server/src/javascript_bundle.dart:223) 2024-08-29T23:35:41Z [web] #10 FrontendCompiler.writeJavaScriptBundle (package:frontend_server/frontend_server.dart:801) 2024-08-29T23:35:41Z [web] 2024-08-29T23:35:41Z [web] #11 FrontendCompiler.compile (package:frontend_server/frontend_server.dart:661) 2024-08-29T23:35:41Z [web] 2024-08-29T23:35:41Z [web] 2024-08-29T23:35:41Z [web] Error: #12 listenAndCompile. (package:frontend_server/frontend_server.dart:1311) 2024-08-29T23:35:41Z [web] 2024-08-29T23:35:41Z [web] 2024-08-29T23:35:41Z [web] Error: Failed to compile application. 2024-08-29T23:35:41Z [web] 2024-08-29T23:35:41Z [web] ✘ Preview failed to start