import {BOOMR} from 'node_modules/boomerangjs'; export class DashboardComponent implements OnInit { ngOnInit() { BOOMR.init({ beacon_url: "/beacon" }); } }
Could not find a declaration file for module 'node_modules/boomerangjs'. 'd:/code/node_modules/boomerangjs/boomerang.js' implicitly has an 'any' type. Try `npm install @types/boomerangjs` if it exists or add a new declaration (.d.ts) file containing `declare module 'boomerangjs';`
I tried to import boomerangjs using below ways. Even I created boomerang.d.ts and referred in tsconfig.json but nothing is working for me. //import * as BOOMR from 'node_modules/boomerangjs'; //import "node_modules/boomerangjs/boomerang.d.ts"; const BOOMR = require('node_modules/boomerangjs');
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)