-
-
Notifications
You must be signed in to change notification settings - Fork 437
Description
Describe the bug
A breaking change was introduced in htmlhint v1.9.0 without a major version bump, causing existing projects to fail without explicitly upgrading.
Our project depends on htmlhint@^1.1.4. When v1.9.0 was released, a fresh install resolved to that version automatically due to semantic versioning. After installing dependencies and running the project, the build fails with a missing file error.
The file htmlhint/dist/htmlhint.js, which existed and was importable in earlier 1.x versions, is no longer exported or included in v1.9.0.
Pinning exactly htmlhint@1.1.4 makes the issue disappear.
To Reproduce
- In a project that depends on:
"htmlhint": "^1.1.4"
- Use the following import:
import "htmlhint/dist/htmlhint.js";
- Perform a fresh install (or delete node_modules and lockfile)
- Run the project
Error output
[ERROR] Missing "./dist/htmlhint.js" specifier in "htmlhint" package [plugin vite:dep-scan]