Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

"File to import not found or unreadable:" when watching file with imports #2680

@ghost

Description

  • NPM version (npm -v): 6.9.0
  • Node version (node -v): 10.16.0
  • Node Process (node -p process.versions):
    { http_parser: '2.8.0',
    node: '10.16.0',
    v8: '6.8.275.32-node.52',
    uv: '1.28.0',
    zlib: '1.2.11',
    brotli: '1.0.7',
    ares: '1.15.0',
    modules: '64',
    nghttp2: '1.34.0',
    napi: '4',
    openssl: '1.1.1b',
    icu: '64.2',
    unicode: '12.1',
    cldr: '35.1',
    tz: '2019a' }
  • Node Platform (node -p process.platform): win32
  • Node architecture (node -p process.arch): x64
  • node-sass version (node -p "require('node-sass').info"):
    node-sass 4.12.0 (Wrapper) [JavaScript]
    libsass 3.5.4 (Sass Compiler) [C/C++]
  • npm node-sass versions (npm ls node-sass):
    test-folder@1.0.0 C:\Users\Wessel\Desktop\test-folder
    `-- node-sass@4.12.0

When my main.scss with import is being watched and I change + save the file that is being imported, I get this error message regularly (about 25 - 50% of the time):

{
"status": 1,
"file": "C:/Users/Wessel/Desktop/test-folder/SCSS/main.scss",
"line": 1,
"column": 1,
"message": "File to import not found or unreadable: base/reset.",
"formatted": "Error: File to import not found or unreadable: base/reset.\n on line 1 of SCSS/main.scss\n>> @import "base/reset";\n ^\n"
}

My folder structure:

bugNode-Sass

When I change my _reset.scss file and save, sometimes I get the green "Rendering Complete, saving .css file...
Wrote CSS to C:\Users\Wessel\Desktop\test-folder\style.css" and sometimes I get the error message. It seems really random.

bugNode-Sass2

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