You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For anyone who has error _ReferenceError: cliPkgExports is not defined with sass from npm and JS API.
All you have to do is change from import sass from 'sass'; to import * as sass from 'sass'; and everything should now working fine.
I created this issue in case someone who just updated and run via JS API but error occur. Searched but found nothing on Google. The line above is the fix.
From my problems:
Previous known working version: 1.54.9
Updated to 1.63.5 then error occur.
Changed as commented above fixed.
Thank you.
The text was updated successfully, but these errors were encountered:
For anyone who has error _ReferenceError: cliPkgExports is not defined with sass from npm and JS API.
All you have to do is change from
import sass from 'sass';
toimport * as sass from 'sass';
and everything should now working fine.I created this issue in case someone who just updated and run via JS API but error occur. Searched but found nothing on Google. The line above is the fix.
From my problems:
Previous known working version: 1.54.9
Updated to 1.63.5 then error occur.
Changed as commented above fixed.
Thank you.
The text was updated successfully, but these errors were encountered: