Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scss dependency false report #322

Closed
KaboomFox opened this issue Feb 28, 2019 · 0 comments
Closed

scss dependency false report #322

KaboomFox opened this issue Feb 28, 2019 · 0 comments

Comments

@KaboomFox
Copy link
Member

KaboomFox commented Feb 28, 2019

Bug Description

I get a false report for packages that import scss only.

Code snippets

I have a package scss-only that is imported in scss via @import ~/scss-only/dist/scss/index.scss . This will give me a error the scss-only is unused.

Where the dependency is listed in package.json:

package.json snippet here
please include the section name (e.g. devDependencies, dependencies)

Versions

  • node -v:
  • npm -v:
  • depcheck --version:

"depcheck": "0.7.1"
"node": "10.0.0"
"yarn": "1.13.0"

Extra info

    at Object.module.exports.renderSync (blah/node-sass/lib/index.js:439:16)
    at parseSASS (/blah/node_modules/depcheck/dist/parser/sass.js:21:33)
    at _fs.default.readFile (/blah/node_modules/depcheck/dist/check.js:77:17)
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:408:3)
        status: 1,
        file: 'stdin',
        line: 1,
        column: 1,
        message: 'File to import not found or unreadable: ~react-vis/dist/main.scss.',
        formatted: 'Error: File to import not found or unreadable: ~react-vis/dist/main.scss.\n  ```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants