Closed LinusBorg closed 7 years ago
I'm getting the same error, did you solve it or not?
I'm trying to switch from Knex to Sequelize.
No, didn't find a fix..
+1 Getting the same error here
Moving
const parsed = url.parse(connectionString);
from line 46 to line 55 (the only block where it is needed) and changing
filename: connectionString.substring(9, connectionString.length)
to
filename: connectionString.filename
on line 91 seems to fix the issue; this might be just a superficial fix as I have no understanding whatsoever of the code.
ping @daffl as he seems to be the one who did the work on parsed
.
@daffl. I am getting the same error when I tried using knex SQLite service today. I am using feathers cli version 2.3.5. Can you please suggest a solution?
Description of the Problem
In a Project I want to use knexJS and sqlite. I ran
feathers genrate authentication
with those choices, which generated theusers
service and aknex.js
connection file and all went fine.Then I tried to generate a second service, and now get the following error:
The Source
it appears the generator wants to generate a connection file for knex again(?) and wants to re-use the connection-string from the config file, but for sqlite, it's not a string, it's an object:
Steps to reproduce
feathers generate app
, accept default choicesfeathers generate service
feathers generate service