classnames/classnames.d.ts
file in this repo and had problems.As I result I get message "Module 'classnames' has no default export".
you should use import * as classnames from "classnames";
.
https://github.com/JedWatson/classnames/blob/master/index.js#L39
@vvakame, Thanks. I'll try. The strange thing is that this also works:
import classnames from 'classnames';
I get typescript error but everything works.
Time to get back to this due to original package change: PR #25205 or PR #25206
Most helpful comment
you should use
import * as classnames from "classnames";
.https://github.com/JedWatson/classnames/blob/master/index.js#L39