Skip to content

ReferenceError: _cliPkgExports is not defined #2024

Closed
@ve3

Description

@ve3

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions