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

Cannot use Fontkit on CodeSandbox.io #325

Open
EricCote opened this issue Dec 14, 2023 · 3 comments
Open

Cannot use Fontkit on CodeSandbox.io #325

EricCote opened this issue Dec 14, 2023 · 3 comments

Comments

@EricCote
Copy link

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:

  1. Pick a version of @swc/helpers with the previous version: "0.4.35".
  2. 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

@Dammmien
Copy link

@EricCote did you try to open a pull request with the upgrade ?

@EricCote
Copy link
Author

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)

@Dammmien
Copy link

Yep I saw that afterward 😞
@devongovett are you open to new maintainers or is there anything planned to keep the project up to date ?

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

No branches or pull requests

2 participants