I'm trying to use the dart-sass
module to compile some SCSS in my React project with Typescript. I installed the module, imported it, and got the error in the title. What could it be? Some type of imports I tried:
import { renderSync } from 'sass';
import sass from 'sass';
const sass = require('sass');
Everything throws the following error:
TypeError: The "original" argument must be of type Function - SASS
Try to follow these steps i think it will fix your problem :
Add node-sass to your project
Include node-sass in your Gruntfile
In your sass options, change the following line
from
to