"Class extends value undefined is not a constructor or null"
a7mdragab opened this issue · 3 comments
a7mdragab commented
Hey
I am getting this error:
TypeError: Class extends value undefined is not a constructor or null
at Object.<anonymous>
(C:\Users\ahmed\AppData\Roaming\npm\node_modules\@adonisjs\cli\src\Commands\Base\index.js:17:31)
in this line
const ace = require('../../../lib/ace')
"class BaseCommand extends ace.Command"
ace is not found and I checked them and are already existing but not working
to reproduce the error, just create new adonisjs project and try this plugin:
https://www.npmjs.com/package/@shagital/adonisjs-crud-generator
RomainLanz commented
Hey @a7mdragab! 👋🏻
You are trying to use an AdonisJS 4 package on AdonisJS 5.
a7mdragab commented
Hey @a7mdragab! 👋🏻
You are trying to use an AdonisJS 4 package on AdonisJS 5.
Thanks for your reply
But how is this?
The plugin itself depends on adonisjs 4?
thetutlage commented
to reproduce the error, just create new adonisjs project and try this plugin:
https://www.npmjs.com/package/@shagital/adonisjs-crud-generator
Please report the issue to the package creator. It is not an official package