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
There is a new dependency error that blocks people from using Fontkit on CodeSandbox.io/. Worse, existing code exemples using Fontkit that worked for years suddenly stopped working in August 2023.
The new last version of @swc/[email protected] is version 0.4.36. This version was created to fix a regression bug that needed to be compatible with various versions of nextjs. (older and newer). It uses a feature called 'aliasing', which works with newer versions of npm, but NOT using a CodeSandbox.
There are 2 solutions:
Pick a version of @swc/helpers with the previous version: "0.4.35".
Pick a version of @swc/helpers from a more recent version: "^0.5.3".
The Github conversation says that "maintained packages should use v0.5.x instead of 0.4.x".
I did some testing, and Fontkit seems to be working fine, with no issues, using "@swc/helpers" : "^0.5.3".
This is an easy fix, and would help every demo that was previously posted on CodeSandbox
The text was updated successfully, but these errors were encountered:
There is a new dependency error that blocks people from using Fontkit on CodeSandbox.io/. Worse, existing code exemples using Fontkit that worked for years suddenly stopped working in August 2023.
Here is a description of the issue:
swc-project/swc#7843
The new last version of
@swc/[email protected]
is version 0.4.36. This version was created to fix a regression bug that needed to be compatible with various versions of nextjs. (older and newer). It uses a feature called 'aliasing', which works with newer versions of npm, but NOT using a CodeSandbox.There are 2 solutions:
@swc/helpers
with the previous version:"0.4.35"
.@swc/helpers
from a more recent version:"^0.5.3"
.The Github conversation says that "maintained packages should use v0.5.x instead of 0.4.x".
I did some testing, and Fontkit seems to be working fine, with no issues, using
"@swc/helpers" : "^0.5.3"
.This is an easy fix, and would help every demo that was previously posted on CodeSandbox
The text was updated successfully, but these errors were encountered: