foliojs / fontkit

An advanced font engine for Node and the browser
1.44k stars 210 forks source link

Cannot use Fontkit on CodeSandbox.io #325

Open EricCote opened 6 months ago

EricCote commented 6 months ago

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: https://github.com/swc-project/swc/issues/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 commented 4 months ago

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

EricCote commented 4 months ago

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 commented 4 months ago

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