-
Notifications
You must be signed in to change notification settings - Fork 768
TypeError: appenderModule.configure is not a function #1411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
hi! i have the same issue with log4js in Nuxt 3. Can anybody help with this? |
hi! i have the same issue with log4js in vue3 and electron.
Error Message:
|
The above configuration will cause an error, however the following configuration will not
|
Downgrade version, <= v6.8.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Node.js: v16.16.0 Nuxt: 2.15.8 log4js: 6.9.1
Hi.
I am triying to use log4js in Nuxt,it is work, but it's throwing an error: TypeError: appenderModule.configure is not a function.
this is my log4js.js:
I tried three different approaches:
Approach 1: const log4js = require("log4js");
Approach 2: import log4js from 'log4js';
Approach 3: import * as log4js from "log4js";
But all of them resulted in the above-mentioned error.
usage:
error is:
But when I directly use log4js in a component, it works and doesn't throw an error.
my component:
The text was updated successfully, but these errors were encountered: