Hey, guys!,
I’m trying to use a lib that is a OSLC REST API client - oslc-client.
On the example file, it is requiring the file namespaces.js.
In this file there’s some global objects declared.
I am not being able to import this file in my server.js.
Tried:
require(“oslc-client/namespaces”);
require("./node_modules/oslc-client/namespaces");
Nothing seems to work.
But some others resources, since they are classes, works!
var OSLCServer = require(“oslc-client”);
var OSLCResource = require(“oslc-client/OSLCResource”);
So, what am I missing here?