Skip to content

SCSS file being compiled from node_modules even though it isn't imported #6950

@clayne11

Description

@clayne11

I'm trying to setup nathantreid:css-modules but I'm having an issue with some SCSS files trying to be compiled from my node_modules folder even though I never import those files.

I'm getting the following error:

TypeError: Cannot set property './components.scss.js' of undefined
    at ImportScanner._checkSourceAndTargetPaths (/tools/isobuild/import-scanner.js:256:7)
    at /tools/isobuild/import-scanner.js:159:12
    at Array.forEach (native)
    at ImportScanner.addInputFiles (/tools/isobuild/import-scanner.js:158:11)
    at /tools/isobuild/compiler-plugin.js:834:15
    at Array.forEach (native)
    at Function.computeJsOutputFilesMap (/tools/isobuild/compiler-plugin.js:805:19)
    at ClientTarget._emitResources (/tools/isobuild/bundler.js:925:8)

The package in question is react-select. Is Meteor supposed to eagerly evaluate all files in my node_modules folder?

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