feathersjs-ecosystem/generator-feathers

Support different config ext

Closed this issue · 3 comments

Generator fails when app config is in different ext from JSON

What kind of service is it? A custom service
? What is the name of the service? password-reset
? Which path should the service be registered on? /password-reset
events.js:174
      throw er; // Unhandled 'error' event
      ^

TypeError: Cannot read property 'ts' of undefined
    at ServiceGenerator.writing (/Users/eqape/.nvm/versions/node/v10.16.0/lib/node_modules/@feathersjs/cli/node_modules/generator-feathers/generators/service/index.js:167:18)
daffl commented

This has been fixed in @feathersjs/cli@4.2.0. If you are using TypeScript, make sure you add "types": "lib/" in your package.json for this to work.

daffl commented

Ok, now it should be actually fixed in @feathersjs/cli@4.2.1. There might still be some edge cases writing configuration but that would be a different issue.