Cannot use Fontkit on CodeSandbox.io
EricCote opened this issue · 3 comments
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/helpers@0.4.x
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
No commit nor pull requests have been merged in the last 2 years. This project feels abandoned.
My message is addressed to a future maintainer of this project... (Or a fork)
Yep I saw that afterward 😞
@devongovett are you open to new maintainers or is there anything planned to keep the project up to date ?