Questions tagged [adonisjs-ace]

AdonisJS Ace is the command line component for AdonisJS.

Ace is command line framework embedded into AdonisJS for creating CLI commands.

The project is under active development at github.com/adonisjs/ace.

62 questions
1
vote
3 answers

AdonisJs Ace - E_IOC_LOOKUP_FAILED

I'm trying to load the Event system into an ace command. public async run() { const { default: Event } = await import('@ioc:Adonis/Core/Event') } However this results in the following error: Cannot resolve "Adonis/Core/Event" namespace from the…
Ricky Barnett
  • 1,130
  • 3
  • 15
  • 32
1
vote
2 answers

Adonisjs How to cast boolean to false and true in a model instead of 0 or 1?

This is my table field (open) but in response, it returns 0 1 but I want true false instead of 0 1 I am using adonis MySQL table.boolean('open').notNullable().defaultTo(true).comment('true = open, false = close') const Model = use('Model') class…
1
vote
0 answers

Running node ace invoke adonis-mix-asset throws up this error: `invoke` is not a registered command

Ace file: 'use strict' /* |-------------------------------------------------------------------------- | Ace Commands |-------------------------------------------------------------------------- | | The ace file is just a regular Javascript file but…
Ebuka Ubah
  • 11
  • 1
1
vote
1 answer

How to get specific field from nested table relation in adonisjs

THIS IS MY CODE QUERY i want to get only some specific field from every table: const project = await Project.query() .where("user_id", user_id) .where('id', project_id) …
1
vote
3 answers

Adonis 5 node deprecated warning when using migration

This has recently started poping up in commandline....anyone know whats going on, Im unsure why the new package in node_modules is not compatable with node v14.16. I tried using older version of node (docs state min version for adonis 5 is version…
Orbitall
  • 611
  • 11
  • 36
1
vote
1 answer

Getting error while storing data in db using adonis

I am using below code to put my row details through post request in db but error is coming: (insert into `product` (`created_at`, `description`, `id`, `image`,`pages`, `title`, `updated_at`) values ('2021-02-14 02:44:52', 'sddsds', 12, 'image',…
0
votes
0 answers

Adonis Js authorization fails

I'm new to adonis js while implementing authentication and authorization the authorization middleware fails even when I'm passing bearer and token gotten from login endpoint. I logged my postman request in Auth middleware { authorization: 'Bearer…
Yhomi
  • 97
  • 1
  • 9
0
votes
0 answers

IocLookupException: E_IOC_LOOKUP_FAILED: Cannot resolve "Adonis/Lucid/Database" namespace from the IoC Container

Getting this error while saving data into postgres using insert query via ADONISJS commands feature. Followed up the official documentation but not able to solve this. import Database from '@ioc:Adonis/Lucid/Database'; public async run() { …
0
votes
0 answers

Razor pay integration and payment capture

how to install razor pay in adonis js ? how to integrate in adonis js ? How to capture razor pay payment in adonis js ? how to get all payment details? how to refund payment in razor pay? how to get refund details and payment details ?
0
votes
0 answers

Adonis js adding a hosted website in cros list

I have a react website that i hosted in s3 as static hosting. the URL looks like following http://www...amazonaws.com i website has backend which is running on my local machine url is "http://localhost:0.0.3000/". and…
sai kumar
  • 21
  • 3
0
votes
0 answers

deploy adonisJs fullstack on vercel

I would like to deploy adonisjs fulltack application on vercel, but always get 404 message. Adonisjs documentation : https://adonisjs.com/ I try to change : the build script by overflowing the build script by : node ace --production && cp .env…
0
votes
2 answers

How to use query builder with adonis repl

Im trying to figure out how can I manipulate my database using adonis repl. I understand models.User is what I should start with to manipulate Users table and I tried using models.User.query() and this function does exist but I cannot understand how…
w3bsite
  • 181
  • 1
  • 10
0
votes
0 answers

unable to create a new database from the migrations

im not really sure what is going on to be honest. I was given a project to take over and I am following the steps in the README this is the step is giving me an issue is the following: You can create a new database from the migrations in this…
Juan Casas
  • 268
  • 2
  • 13
0
votes
0 answers

All Inertia requests must receive a valid Inertia response, however a plain JSON response was received

I have a problem using routes with inertia, I'm using AdonisJS + Inertia + Svelte Everything running perfectly, but when clicking on links of routes it only returns me this problem My Home.svelte: My router: Route.get('/second',…
Nietore
  • 35
  • 5
0
votes
0 answers

My HEROKU APP doesn't connect to my HEROKU DATABASE FROM HARUKU DATA

I have an API in HEROKU that when I use the method of this API it doesn't even connect to my DB, I only get the ERROR: DEPTH_ZERO_SELF_SIGNED_CERT Does anyone knows what it can be? I believe that it has something to do with SSL or HTTPS…