2

My objective is to configure Tailwind in an existing Angular project, with Material and scss. I have followed this guide, and most things seem to work. However in the project we have a variables.scss file, with multiple variables defined like:

$spaceSize32: 32px;
$spaceSize58: 48px;

We import the variables in our component style with:

@import 'variables.scss';

However, after upgrading to tailwind, it throws the following error when we try to compile Angular:

Module build failed (from ./node_modules/postcss-loader/src/index.js):
Error: Failed to find '~variables.scss'

What can we do to fix this error?

DauleDK
  • 3,313
  • 11
  • 55
  • 98

0 Answers0