Closed johnnyreilly closed 1 year ago
This function has been marked deprecated since 4.1 (possibly earlier?)
/** @deprecated Use `factory.createStringLiteral`, `factory.createStringLiteralFromNode`, `factory.createNumericLiteral`, `factory.createBigIntLiteral`, `factory.createTrue`, `factory.createFalse`, or the factory supplied by your transformation context instead. */
const createLiteral: {
Wowser! Thanks
Bug Report
π Search Terms
ts.createLiteral is not a function
π Version & Regression Information
I noticed that the
typescript@next
test packs for ts-loader were failing with the esoteric errorts.createLiteral is not a function
. I'm baffled as to why - so I thought I'd ask!https://github.com/TypeStrong/ts-loader/actions/runs/4321988253/jobs/7543877954
π» Code
https://github.com/TypeStrong/ts-loader/blob/9aa5b521a7647fdbd575bb76daa94183e3286604/test/execution-tests/loaderOptions/uppercaseStringLiteralTransformer.js#L10
The tests make use of this API - ts-loader itself does not.
π Actual behavior
Tests that usually pass now fail
π Expected behavior
Tests that usually pass still pass