Skip to content

Latest version uses not exported types module from sass #13

@KenjiTakahashi

Description

@KenjiTakahashi

Trips tools like eslint, e.g.:

Oops! Something went wrong! :(

ESLint: 8.57.1

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './types/legacy/options' is not defined by "exports" in /<snip>/node_modules/sass/package.json
Occurred while linting /<snip>/rollup.config.mjs:2
Rule: "import/namespace"

From what I see, the legacy types are re-exported in the types/index, so it should be possible to import directly like this import { LegacyOptions } from 'sass'.

Metadata

Metadata

Assignees

No one assigned

    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