request.input & request.only is undefined with GET requests #1713
-
I just created two new projects and I was trying to get the values of my inputs but both are coming out as I noticed fold and ace in package.json came with older versions both 6.0.0 on contraire to another project that was |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Weird. Can you share how did you create the project? To fix the main issue, you need to upgrade dependencies manually. The following command should do it npm i @adonisjs/ace@alpha @adonisjs/fold@alpha @adonisjs/core@alpha |
Beta Was this translation helpful? Give feedback.
-
Strange indeed I used |
Beta Was this translation helpful? Give feedback.
-
Though the request is there the values are still undefined. 6- redo create project with yarn 12- redo create project with npx node v12.16.0 |
Beta Was this translation helpful? Give feedback.
Though the request is there the values are still undefined.
Steps I took:
1- create a new project with yarn
2- create a route with request.input, request.only, request.validate
3- return the values or console log them - undefined
4- delete project
5- yarn cache clean
6- redo create project with yarn
7- same steps 2-3
8- delete node_modules
9- install dependencies again with yarn
10- update dependencies with yarn
11- steps 2-3
12- delete project
12- redo create project with npx
13- same steps 2-3
14- same result undefined
node v12.16.0
npm v6.14.8
yarn v1.22.5