K
Kinde12mo ago
Eranga

kinde_flutter_sdk not being recognised

Hello, I'm trying to use Kinde on my Flutter web app. I am mostly testing my web app using MacOS when I do my development. When I add Kinde Flutter SDK and try to run the web, I get this error:
[!] No podspec found for kinde_flutter_sdk in Flutter/ephemeral/.symlinks/plugins/kinde_flutter_sdk/macos
Any idea how tosolve this?
5 Replies
Eranga
ErangaOP12mo ago
When I try to run the web app on Chrome, I get the below error:
Launching lib/web/main.dart on Chrome in debug mode... org-dartlang-app:/web_plugin_registrant.dart:24:8: Error: Error when reading '../../../../.pub-cache/hosted/pub.dev/kinde_flutter_sdk-1.0.1/lib/kinde_flutter_sdk_web.dart': No such file or directory import 'package:kinde_flutter_sdk/kinde_flutter_sdk_web.dart'; ^ org-dartlang-app:/web_plugin_registrant.dart:50:3: Error: Undefined name 'KindeFlutterSdkWeb'. KindeFlutterSdkWeb.registerWith(registrar); ^^^^^^^^^^^^^^^^^^
VKinde
VKinde12mo ago
Try: cd ios pod repo update pod install If that doesn't work, try to flutter pub get to redo the symlinking if its broken/missing Afterwards check if your plugin that you have installed sees: https://github.com/kinde-oss/kinde-sdk-ios/blob/main/KindeSDK.podspec If that doesn't work, you may need to manually link the plugin in your macOS project by adding the corresponding .podspec reference in the macos/Podfile.
GitHub
kinde-sdk-ios/KindeSDK.podspec at main · kinde-oss/kinde-sdk-ios
Kinde SDK for iOS. Contribute to kinde-oss/kinde-sdk-ios development by creating an account on GitHub.
Eranga
ErangaOP12mo ago
I tried pod install --repo-update , also cleaned the hosted cache and retried running pub get still didn't work. When I tried the web (Chrome), it also threw an error I'll check again your steps as well. I checked the first part of your suggestion and it doesn't work. For manually linking the plugin I'm not sure what you means since I have very litle knowledge on how to do that But my main issue is, I don't get to work either MacOS or Chrome when I add your SDK When I remove it, everything runs normal
VKinde
VKinde12mo ago
I can't seem to replicate on my end; both of those errors you're seeing are having to do with not importing the SDK correctly. The chrome one is saying it's missing the .dart file.
Eranga
ErangaOP12mo ago
Yes, I'm wondering whether this could be an issue because I use melos to split my repo into multiple packages Let me try with an entirely different pub from some other place and check I can execute commands on that I tried adding a new package (cryptography) that I never used to my project and ran few commands within it. It works fine for me. I'm not sure why this issue only happens with kinde_flutter_sdk For now, I will continue doing things manually
Want results from more Discord servers?
Add your server