Feathers: Upgrade/Generator does not work with .JS files

Created on 2 Sep 2019  路  1Comment  路  Source: feathersjs/feathers

Steps to reproduce

  • Create a non v4 project.
  • Change the default.json to default.js
  • Run feathers upgrade

Details

I have an existing project, which have a .js file extention on the default config.
When I run the upgrade command, I get a Cannot set property 'authentication' of undefined.
This is due to the upgrade / generator is expecting an default.json and not a default.js.

Expected behavior

I should upgrade the project.

Actual behavior

It throws an Cannot set property 'authentication' of undefined error

Most helpful comment

I published a fix that won't make it error. .js configuration files won't be updated automatically though.

>All comments

I published a fix that won't make it error. .js configuration files won't be updated automatically though.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

NetOperatorWibby picture NetOperatorWibby  路  4Comments

rrubio picture rrubio  路  4Comments

arve0 picture arve0  路  4Comments

perminder-klair picture perminder-klair  路  3Comments

codeus-de picture codeus-de  路  4Comments