Skip to content

v1.9.0 breaks v^1.1.4 #1803

@v-dcoy

Description

@v-dcoy

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

  1. In a project that depends on:

"htmlhint": "^1.1.4"

  1. Use the following import:

import "htmlhint/dist/htmlhint.js";

  1. Perform a fresh install (or delete node_modules and lockfile)
  2. Run the project

Error output

[ERROR] Missing "./dist/htmlhint.js" specifier in "htmlhint" package [plugin vite:dep-scan]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions