Open mohitxskull opened 4 months ago
Hey @mohitxskull! 👋🏻
Have you configured the package with node ace configure vinejs
?
Heyy @RomainLanz
i don't remember doing so because i didn't setup the project today but i checked the steps which are performed when we do that and vinejs was there when i checked provider list
providers: [
() => import('@adonisjs/core/providers/app_provider'),
() => import('@adonisjs/core/providers/hash_provider'),
{
file: () => import('@adonisjs/core/providers/repl_provider'),
environment: ['repl', 'test'],
},
() => import('@adonisjs/core/providers/vinejs_provider'),
() => import('@adonisjs/cors/cors_provider'),
() => import('@adonisjs/lucid/database_provider'),
() => import('@adonisjs/auth/auth_provider'),
() => import('@adonisjs/bouncer/bouncer_provider'),
() => import('@adonisjs/mail/mail_provider'),
() => import('@adonisjs/limiter/limiter_provider'),
() => import('@adonisjs/core/providers/edge_provider'),
],
And i saw this in docs just now so it looks like the problem is on my side 😅
Heyy @RomainLanz
Please can i get your help here?
Could you please create a repository with the minimum amount of code to reproduce your issue?
Heyy i was not able to reproduce the error, i think there is problem with packages i have installed
Heyy @RomainLanz
i was able to reproduce it
https://github.com/mohitxskull/vine-file
when you will do yarn
and after that run node ace
, you will see the error
then comment the ImageFileSchema
line in the /app/validators/base.ts
after that if you run node ace
you won't see error
this error coming because i am using EmailSchema
in a custom command ( /commands/playground.ts
) which also includes the schema which is using vine.file
in my project i created a seprate file for schemas related to vine.file
and avoided using them in custom command files
Package version
2.1.0
Describe the bug
This is the error i am getting when i run
node ace
. The development server is working fine and there are no problem even when i build the application.This is my code on line
102
According to docs i can use it like this and in vscode function dropdown the
file
function is showingReproduction repo
No response