I fail to import the JL module from JSNLog in my TypeScript project. I installed my dependencies using JSPM:
jspm install npm:jsnlog
The documentation gives an example for node:
var JL = require('jsnlog').JL;
I tried to make it available in my project (for the browser) but I cannot make it work:
import JL from 'jsnlog' // TypeError: jsnlog_1.default.createConsoleAppender is not a function
import {JL} from 'jsnlog' // TypeError: Cannot read property 'createConsoleAppender' of undefined
const JL = require('jsnlog').JL // Error: require is not defined
import JL = require('jsnlog').JL // TypeError: JL.createConsoleAppender is not a function
Any wizard out there who can point me into the right direction?
// tsconfig.json
"compilerOptions": {
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": true,
"noImplicitAny": false,
"module": "system",
"moduleResolution": "node",
"target": "es5"
}