Giter Club home page Giter Club logo

Comments (6)

connecteev avatar connecteev commented on August 19, 2024

Quick update here to make sure I wasn't doing something stupid. I did a fresh checkout of everything:

  1. Backend: https://github.com/guillaumebriday/todolist-backend-laravel
    Reran composer install and all scripts (migration, seeding, generation of keys, etc), and I have php artisan serve running on port 8000

  2. Front-end: Fresh pull of https://github.com/guillaumebriday/todolist-frontend-nuxt/
    Reran npm install and npm run dev. This time, nuxt is running on port 3000 with no conflicts.

I then went to http://localhost:3000/register and try to register, but am seeing the same error in the console. 100% sure that something is broken here.

register.js: 269 Uncaught (in promise) TypeError: Cannot read property 'data' of undefined
    at register.js:269

from todolist-frontend-nuxt.

connecteev avatar connecteev commented on August 19, 2024

By the way, I also tried doing this: cp .env.example .env which wasn't in the README

from todolist-frontend-nuxt.

guillaumebriday avatar guillaumebriday commented on August 19, 2024

Hum i think your error is related to the "the message port closed before a response was received".

I tried on my new MBP at work, I have no error both on Laravel and Nuxt.

Please check your development env as long as you don't want to use docker. If you're not sure what you're doing you can use the official homestead instead withou issue.

You can check if everything is working fine here : https://todolist-nuxt.guillaumebriday.xyz

from todolist-frontend-nuxt.

guillaumebriday avatar guillaumebriday commented on August 19, 2024

Ok my bad, I've always tried with a PUSHER_APP_KEY in my .env but it fails when it's not defined.

Fixed in 183195c

from todolist-frontend-nuxt.

connecteev avatar connecteev commented on August 19, 2024

@guillaumebriday thanks for looking at it. We're past that error now
This is what I now see in the console on register:
http://localhost:8000/api/v1/auth/register 422 (Unprocessable Entity)

{message: "The given data was invalid.",…}
errors: {name: ["The name may only contain letters, numbers, dashes and underscores."]}
name: ["The name may only contain letters, numbers, dashes and underscores."]
0: "The name may only contain letters, numbers, dashes and underscores."
message: "The given data was invalid."

from todolist-frontend-nuxt.

connecteev avatar connecteev commented on August 19, 2024

Edit: Duh! My bad. I was entering my full name in the username field, so it had a space. It works :)

from todolist-frontend-nuxt.

Related Issues (4)

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.