Skip to content
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

Err Creating a new instance #64

Closed
phamhoaithuong opened this issue Aug 13, 2019 · 1 comment
Closed

Err Creating a new instance #64

phamhoaithuong opened this issue Aug 13, 2019 · 1 comment

Comments

@phamhoaithuong
Copy link

phamhoaithuong commented Aug 13, 2019

import consola from 'consola'

const logger = consola.create({
// level: 4,
reporters: [
new consola.JSONReporter()
],
defaults: {
additionalColor: 'white'
}
})

Error TS2339 (TS) Property 'JSONReporter' does not exist on type 'Consola'.
Error TS2322 (TS) Type '{ additionalColor: string; }' is not assignable to type 'ConsolaLogObject'.
Object literal may only specify known properties, and 'additionalColor' does not exist in type 'ConsolaLogObject'.
i'm using code in document, but it have error. i don't nkow how to fix it. pls help me, thanks you very much.

This question is available on Nuxt community (#c58)
@ghost ghost closed this as completed Aug 13, 2019
@ghost ghost added the cmty:question label Aug 13, 2019
@ghost
Copy link

ghost commented Aug 13, 2019

This issue as been imported as question since it does not respect consola issue template. Only bug reports and feature requests stays open to reduce maintainers workload.
If your issue is not a question, please mention the repo admin or moderator to change its type and it will be re-opened automatically.
Your question is available at https://cmty.app/nuxt/consola/issues/c58.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant