Coder Social home page Coder Social logo

nylo-core / laravel_auth_slate Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 289 KB

Laravel authentication for your Nylo project! Login, Register, Forgot Password and more

Home Page: https://nylo.dev

License: MIT License

Dart 100.00%
auth laravel nylo slate authentication flutter

laravel_auth_slate's Issues

The method 'api' isn't defined for the class 'ForgotPasswordController'

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.

File names wrong when doing clean installation

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.