Comments (6)
Quick update here to make sure I wasn't doing something stupid. I did a fresh checkout of everything:
-
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 -
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.
By the way, I also tried doing this: cp .env.example .env
which wasn't in the README
from todolist-frontend-nuxt.
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.
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.
@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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from todolist-frontend-nuxt.