Closed tvld closed 1 year ago
I thought mixup of versions, so I tried:
sudo npm i -g @feathersjs/cli@pre
feathers generate service
But this generates faulty files. For example in class:
// This is a skeleton for a custom service class. Remove or add the methods you need here
export class TestService implements
ServiceInterface<Test, TestData, TestParams, TestPatch> { // >> >error, we do not need TestPatch ?
One thing to note for the pre-releases is that the CLI and dependency versions (@feathersjs/feathers
etc.) should line up. The recommended way in new applications is to install the CLI as a development dependency into your project:
npm install @feathersjs/cli@pre --save-dev
And then use it via
npx feathers generate
That way everybody working on the project always has the correct generator available.
Yeb, that nails it )))