striptags icon indicating copy to clipboard operation
striptags copied to clipboard

Imports not work

Open KakakuCZ opened this issue 4 years ago • 0 comments

Hello, I have problem with importing your library...

When I run const striptags = require("striptags") - everything is fine.

But when Iam trying import with import keywork, it throws an error (striptag is undefined) import striptags from "striptags";

When i want to use import keyword, I need to import by this way (despire my IDE whispering previous way): import * as striptags from "striptags";.

Can you edit your library to allow importing by import striptags from "striptags";?

Context: Node 15, Nest.js Thank you.

KakakuCZ avatar Nov 26 '21 22:11 KakakuCZ