Skip to content

Error: ENOENT: no such file or directory #568

@jorschac

Description

@jorschac

Hi all
A problem I encountered when try to add stylelint-config-html to my extends. When it tries to scan a scss file, following error poped up:

Error: ENOENT: no such file or directory, open '/Users/MY_NAME/Desktop/My_PROJECT/node_modules/.pnpm/[email protected][email protected]/node_modules/stylelint-config-html/index.js'

while the file it said "not found" is actually there, right in the directory it can't find the file:

截屏2024-06-12 15 12 58

dependencies I insatalled are:
"postcss-html": "^1.7.0", "stylelint": "14.16.1", "stylelint-declaration-strict-value": "^1.8.0", "stylelint-config-html": "^1.1.0"

and here is my stylelint config:
root: true,
extends: ['stylelint-config-recommended-scss', "stylelint-config-html"]
rules: {
'font-family-no-missing-generic-family-keyword': null,
'scss/at-import-partial-extension': 'always',
},

here is my extension config:
"stylelint.validate": [
"css",
"scss",
"less",
"vue",
"vue-html"
],

here are the node pnpm version:

[email protected]
[email protected]
[email protected]

Looking desperately for any help, Thanks!

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