I'm trying to use RethinkDB javascript library with EmberJS. As there is no bower package for RethinkDB to install for ember, I'm trying to use npm package on ember. But I'm new to javascript as well as EmberJS I'm struggling to achieve this.
I have tried importing npm library as below but of no use.
import rethinkdb from 'npm:rethinkdb';
or on myroute.js
import rethinkdb from './node_modules/rethinkdb/rethinkdb.js';
or on ember-cli-build.js
app.import('node_modules\rethinkdb\rethinkdb.js');
nothing above worked.
Aucun commentaire:
Enregistrer un commentaire