mdanki
mdanki copied to clipboard
Getting a "writeStringToMemory is deprecated" message when building anki files
Getting an warning message when building anki files on mdanki 1.0.2. The built anki files work by the way.
Steps to reproduce
example.md
## Test
test
Command:
npx mdanki example.md example.apkg
Actual Output:
writeStringToMemory is deprecated and should not be called! Use stringToUTF8() instead!
The deck "mdanki" has been generated in /home/u/markdown_to_anki/example.apkg
Expected Output:
The deck "mdanki" has been generated in /home/u/markdown_to_anki/example.apkg
Cause?
Wild guess but maybe the message comes from an old copy of sql.js that anki-apkg-export 4.0.3 is using.
Related links:
- https://github.com/sql-js/sql.js/pull/192/files
- https://github.com/emscripten-core/emscripten/blob/78b44ed55cc4d0b4d79f62df9e80ae6f29a5345b/src/preamble.js#L1612-L1625
@LarryBattle You are right with guessing about anki-apkg-export. There is a relavant PR which is still in progress.
Still here two years later, version 1.1.2