You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 27, 2020. It is now read-only.
I have a working solution... however, after installing this module, updating the datasources.json, and created a model to use it as a datasource, I get the following when running:
E:\Dev\Demo>node .
E:\Dev\Demo\node_modules\loopback-datasource-juggler\lib\datasource.js:481
modelClass[r.type].call(modelClass, rn, params);
^
TypeError: Cannot read property 'call' of undefined
at E:\Dev\Demo\node_modules\loopback-datasource-juggler\lib\datasource.js:481:27
at Array.forEach (native)
at DataSource.defineRelations (E:\Dev\Demo\node_modules\loopback-datasource-juggler\lib\datasource.js:442:28)
at DataSource.setupDataAccess (E:\Dev\Demo\node_modules\loopback-datasource-juggler\lib\datasource.js:522:8)
at DataSource.attach (E:\Dev\Demo\node_modules\loopback-datasource-juggler\lib\datasource.js:738:8)
at Function.ModelClass.attachTo (E:\Dev\Demo\node_modules\loopback-datasource-juggler\lib\model-builder.js:331:16)
at Registry.configureModel (E:\Dev\Demo\node_modules\loopback\lib\registry.js:238:15)
at configureModel (E:\Dev\Demo\node_modules\loopback\lib\application.js:438:16)
at EventEmitter.app.model (E:\Dev\Demo\node_modules\loopback\lib\application.js:132:5)
at E:\Dev\Demo\node_modules\loopback-boot\lib\executor.js:172:9
No error is produced as long as no model is using gridfs as the datasource.
Any thoughts? I would really appreciate your help. Thanks.
The text was updated successfully, but these errors were encountered:
I have a working solution... however, after installing this module, updating the datasources.json, and created a model to use it as a datasource, I get the following when running:
E:\Dev\Demo>node .
E:\Dev\Demo\node_modules\loopback-datasource-juggler\lib\datasource.js:481
modelClass[r.type].call(modelClass, rn, params);
^
TypeError: Cannot read property 'call' of undefined
at E:\Dev\Demo\node_modules\loopback-datasource-juggler\lib\datasource.js:481:27
at Array.forEach (native)
at DataSource.defineRelations (E:\Dev\Demo\node_modules\loopback-datasource-juggler\lib\datasource.js:442:28)
at DataSource.setupDataAccess (E:\Dev\Demo\node_modules\loopback-datasource-juggler\lib\datasource.js:522:8)
at DataSource.attach (E:\Dev\Demo\node_modules\loopback-datasource-juggler\lib\datasource.js:738:8)
at Function.ModelClass.attachTo (E:\Dev\Demo\node_modules\loopback-datasource-juggler\lib\model-builder.js:331:16)
at Registry.configureModel (E:\Dev\Demo\node_modules\loopback\lib\registry.js:238:15)
at configureModel (E:\Dev\Demo\node_modules\loopback\lib\application.js:438:16)
at EventEmitter.app.model (E:\Dev\Demo\node_modules\loopback\lib\application.js:132:5)
at E:\Dev\Demo\node_modules\loopback-boot\lib\executor.js:172:9
No error is produced as long as no model is using gridfs as the datasource.
Any thoughts? I would really appreciate your help. Thanks.
The text was updated successfully, but these errors were encountered: