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: TransformStream is not defined #1304

Open
Dannom opened this issue Aug 14, 2024 · 1 comment
Open

ReferenceError: TransformStream is not defined #1304

Dannom opened this issue Aug 14, 2024 · 1 comment

Comments

@Dannom
Copy link

Dannom commented Aug 14, 2024

Hey,
Ive been trying to use the build cli command but keep getting this error:

/ILPETDAOM/AppData/Roaming/nvm/v14.15.5/node_modules/style-dictionary/node_modules/@zip.js/zip.js/lib/core/streams/crc32-stream.js:33
class Crc32Stream extends TransformStream {
^

ReferenceError: TransformStream is not defined
at file:///C:/Users/ILPETDAOM/AppData/Roaming/nvm/v14.15.5/node_modules/style-dictionary/node_modules/@zip.js/zip.js/lib/core/streams/crc32-stream.js:33:27
at ModuleJob.run (internal/modules/esm/module_job.js:152:23)
at async Loader.import (internal/modules/esm/loader.js:166:24)
at async Object.loadESM (internal/process/esm_loader.js:68:5)

has anyone ever faced this?
thanks

@adamstankiewicz
Copy link
Contributor

I believe this is likely due to running style-dictionary with an older, unsupported version of Node.

Note the main branch defines the minimum supported Node version as >=18.0.0 (source), but per your error trace output above, it appears you're running Node v14 via nvm (Node Version Manager).

Try doing node -v to output your current Node version to verify. The fix would be to try switching to Node 18+ (e.g., nvm use 18).

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

No branches or pull requests

3 participants