Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Angular 2 : Cannot find module 'sass-variable-loader' #12

@pierred69

Description

@pierred69

Hello,

I installed the library using yarn (yarn add sass-variable-loader, then I try to import a sass file, but when I run the app on webpack, I got the message "Cannot find module 'sass-variable-loader'".

I just installed the lib and try to use this import :

import colors from 'sass-variable-loader!style/colors.scss';

The aim is to get the sass variables as js variables into an object.

I followed the main instructions but seems not to be recognized.

Is there something to do in the webpack configuration or something ?
Thx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions