Answer the question
In order to leave comments, you need to log in
How to properly import a module so that Webpack likes it?
I found a suitable native JS feedback module , I can’t connect it, the documentation only says:
install with npm install flipdown or yarn add flipdown
For basic usage, FlipDown takes a unix timestamp (in seconds) as an argument.
new FlipDown(1538137672).start();
import 'flipdown';
require('flipdown');
new FlipDown(1618056000, {
theme: 'dark'
}).start();
Uncaught TypeError: _flipdown_js__WEBPACK_IMPORTED_MODULE_15___default.a is not a constructor
__webpack_require__(/*! flipdown */ "./node_modules/flipdown/src/flipdown.js");
new _flipdown_js__WEBPACK_IMPORTED_MODULE_15___default.a(1618056000).start(); // console.log(FlipDown);
Answer the question
In order to leave comments, you need to log in
An example on the office , it also says that "for basic usage Include the CSS and JS in"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question