adonisjs / lucid

AdonisJS SQL ORM. Supports PostgreSQL, MySQL, MSSQL, Redshift, SQLite and many more
https://lucid.adonisjs.com/
MIT License
1.09k stars 195 forks source link

Error when configure lucid #990

Closed yogipratama1 closed 10 months ago

yogipratama1 commented 10 months ago

Package version

Lucid Version : 20.0.0

Describe the bug

When try to node ace configure @adonisjs/lucid on my project, i get the error Error: Package subpath './package.json' is not defined by "exports" in C:\Users....\adonist-project\node_modules\@adonisjs\lucid\package.json

Reproduction repo

No response

RomainLanz commented 10 months ago

Hey @yogipratama1! 👋🏻

Could you please share your Node.js version?

I tried with a fresh installation of AdonisJS 6, and everything went fine.

yogipratama1 commented 10 months ago

Hi @RomainLanz . My Node.js version is V20.11.0

Julien-R44 commented 10 months ago

Are you using AdonisJS 5 ? If this is the case, you should use @adonisjs/lucid@18.4.0

Lucid 20 is for Adonis 6 only

yogipratama1 commented 10 months ago

Are you using AdonisJS 5 ? If this is the case, you should use @adonisjs/lucid@18.4.0

Lucid 20 is for Adonis 6 only

I install the latest AdonisJs. But let me try @adonisjs/lucid@18.4.0 @Julien-R44

yogipratama1 commented 10 months ago

Hey @Julien-R44 , It solved, there is no error when configure @adonisjs/lucid@18.4.0 . Thank you very much