When I try to import the library using Error on var FeatureViewer = require('feature-viewer')
I get the following error. Can anyone please help me?
... node_modules/bootstrap/js/src/tooltip.js:8
import * as Popper from '@popperjs/core'
^^^^^^
SyntaxError: Cannot use import statement outside a module
Tried installing different versions of popper and bootstrap but still got the error.
When I try to import the library using Error on
var FeatureViewer = require('feature-viewer')
I get the following error. Can anyone please help me? ... node_modules/bootstrap/js/src/tooltip.js:8 import * as Popper from '@popperjs/core' ^^^^^^ SyntaxError: Cannot use import statement outside a module Tried installing different versions of popper and bootstrap but still got the error.