I've read through the issues that were proposed to fix this solution and tried modifications of my own to solve this issue based on this PR here https://github.com/littledivy/deno_sdl2/pull/58 but the issue still remained in my own modifications. Wondering if anybody has any ideas on how to resolve this as it pertains specifically to FFI problems which I thought would be resolved in Deno 1.29 since that seemed to caused breaking changes.
I've already tried the v3 released of SDL2 and it did not resolve the problem either. I have a large and mature project I want to port over to desktop but cannot use this solution until I can draw font. I am not seeking alternative solutions such as Electron :)
Error:
Uncaught TypeError: Invalid FFI buffer type, expected null, ArrayBuffer, or ArrayBufferView const raw = sdl2Font.symbols.TTF_RenderText_Solid(
Uncaught TypeError: Invalid FFI buffer type, expected null, ArrayBuffer, or ArrayBufferView const raw = sdl2Font.symbols.TTF_RenderText_Solid(