Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError: _cliPkgExports is not defined #2024

Closed
ve3 opened this issue Jun 21, 2023 · 1 comment · Fixed by #2026
Closed

ReferenceError: _cliPkgExports is not defined #2024

ve3 opened this issue Jun 21, 2023 · 1 comment · Fixed by #2026
Assignees

Comments

@ve3
Copy link

ve3 commented Jun 21, 2023

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.

@ve3 ve3 closed this as completed Jun 21, 2023
@nex3
Copy link
Contributor

nex3 commented Jun 21, 2023

1.63.5 should support import sass from 'sass' with just a warning, not a crash. I'll investigate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants