I testing Aurelia framework and RethinkDB. How can I register Require and RethinkDB to access them from Aurelia ?
import {require} from "require" //require.js is missing
r = require("rethinkdb"); // require is not a function
I testing Aurelia framework and RethinkDB. How can I register Require and RethinkDB to access them from Aurelia ?
import {require} from "require" //require.js is missing
r = require("rethinkdb"); // require is not a function
Copyright © 2021 Jogjafile Inc.
Using the ES6 module system's
importsyntax removes the need to use requirejs and therequirefunction. SystemJS which Aurelia uses in the sample skeleton application can handle AMD formatted modules (which is the format Require uses).That being said, rethinkdb would be on your server, not on the client, if I'm not mistaken.