taoqf / node-html-parser

A very fast HTML parser, generating a simplified DOM, with basic element query support.
MIT License
1.12k stars 112 forks source link

"SyntaxError: The requested module 'node-html-parser' does not provide an export named 'parse'" #160

Closed Pomax closed 3 years ago

Pomax commented 3 years ago

Installed 4.1.5, running a project with type: "module" in package.json, and used the syntax import { parse } from 'node-html-parser'; as per the README. Got this error.

nonara commented 3 years ago

Thanks for the report. This is a duplicate of https://github.com/taoqf/node-html-parser/issues/139

I have a fix ready. Should be released shortly.

Pomax commented 3 years ago

Nice! As a potentially breaking change, releasing it as a new major version's probably a good idea.

nonara commented 3 years ago

Yep. That's the plan. Will post a comment in this thread when it's released.

nonara commented 3 years ago

Corrected in v5