nylo-core / laravel_auth_slate Goto Github PK
View Code? Open in Web Editor NEWLaravel authentication for your Nylo project! Login, Register, Forgot Password and more
Home Page: https://nylo.dev
License: MIT License
Laravel authentication for your Nylo project! Login, Register, Forgot Password and more
Home Page: https://nylo.dev
License: MIT License
current version in pub.dev is 0.0.2
Pls update it as per docs.
Note: This issue comes about after a manual correction noted at the end of issue #2. Please review that in case the details are part of the problem here.
After performing a clean installation as noted in #2, Nylo v5.28.0 and laravel_auth_slate v1.0.25, attempting to flutter run
produces a build error. The build error is:
> flutter run
Launching lib/main.dart on iPhone 15 Pro Max in debug mode...
Running Xcode build...
Xcode build done. 3.6s
Failed to build iOS app
Error (Xcode):
lib/app/controllers/forgot_password_controller.dart:23:33: Error: The
method 'api' isn't defined for the class 'ForgotPasswordController'.
Could not build the application for the simulator.
Error launching application on iPhone 15 Pro Max.
Hello,
I performed a clean installation of Nylo, then installed this slate. My Nylo installation was with v5.28.0.
git clone https://github.com/nylo-core/nylo.git testapp
cd testapp
flutter pub get
open -a Simulator --args -CurrentDeviceUDID $(xcrun simctl list devices | grep 'iPhone 15' | awk
'{print $NF}' | head -n1)
flutter run
This resulted in the standard boiler plate Nylo app demo app showing up in the simulator and working as expected.
Next I performed a clean installation of laravel_auth_slate
(v1.0.25 at this time) via:
dart pub add laravel_auth_slate
metro publish:slate laravel_auth_slate
I then performed the two manual corrections noted inside of config/events.dart
and routes/router.dart
. I also re-ran flutter pub get
to make sure I had any dependencies down.
At this point, I reran flutter run
. My simulator was still open. I get the following error output:
> flutter run
Launching lib/main.dart on iPhone 15 Pro Max in debug mode...
Running Xcode build...
Xcode build done. 2.8s
Failed to build iOS app
Error (Xcode): lib/config/decoders.dart:3:8: Error: Error when reading
'lib/app/controllers/forgot_password_controller.dart': No such file or
directory
Could not build the application for the simulator.
Error launching application on iPhone 15 Pro Max.
This message is correct, the file named lib/app/controllers/forgot_password_controller.dart
is missing. Instead, the file lib/app/controllers/forgot_password_controller_controller.dart
exists.
Notice the extra _controller
in the filename.
Running git status
shows me that several files have suspicious names with duplicated suffixes. Specifically in the controller
and page
sub-folders.
Manually renaming the files with duplicated suffixes seems to be the correct course of action. It at least changed the error message to one I will ticket out as a separate issue.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.