You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to use anything in log4js causes a TypeError. IDE sees all the methods correctly, but TypeScript itself does not.
D:\Projects\eng_to_ipa>npm start -- trans
> eng-to-ipa@0.1.0 start
> npx tsx src/cli.ts trans
D:\Projects\eng_to_ipa\src\main.ts:3
export let defaultLogger = log4js.getLogger();
^
TypeError: log4js.getLogger is not a function
at <anonymous> (D:\Projects\eng_to_ipa\src\main.ts:3:35)
at ModuleJob.run (node:internal/modules/esm/module_job:218:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:329:24)
at async loadESM (node:internal/process/esm_loader:28:7)
at async handleMainPromise (node:internal/modules/run_main:120:12)
Node.js v21.5.0
D:\Projects\eng_to_ipa>
Importing with import { getLogger } from "log4js" doesn't work either
The text was updated successfully, but these errors were encountered:
Trying to use anything in
log4js
causes a TypeError. IDE sees all the methods correctly, but TypeScript itself does not.Importing with
import { getLogger } from "log4js"
doesn't work eitherThe text was updated successfully, but these errors were encountered: