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

Browser exception when deployed under Nuxt 3 #122

Open
jcalfee opened this issue May 29, 2023 · 7 comments
Open

Browser exception when deployed under Nuxt 3 #122

jcalfee opened this issue May 29, 2023 · 7 comments

Comments

@jcalfee
Copy link

jcalfee commented May 29, 2023

argv is undefined
(has-flag.js:30:28)
image
image

Are you checking somewhere to see if this is node or the browser?

@AnthonyRuelle
Copy link

Same problem here,

This package is dead ? not maintained @andreyvit ?

@ewoudenberg
Copy link
Collaborator

@AnthonyRuelle @jcalfee

Sorry to see this issue. Note that json-diff is maintained, but the error appears to be in colors package.

@jcalfee
Copy link
Author

jcalfee commented Jun 23, 2023

True, but I'm not sure the colors would support the browser. Chromium does not show colors in the console as far as I know. I see now, you have an option { color: false } already, I think I need to just use that. I'm not setup to test now but that should do the trick. Thanks

@jcalfee jcalfee closed this as completed Jun 23, 2023
@AnthonyRuelle
Copy link

Please reopen this issue.
With color: false the problem persist :/

@jcalfee jcalfee reopened this Jun 23, 2023
@jcalfee
Copy link
Author

jcalfee commented Jun 23, 2023

In that case, a dynamic import of the colors (if enabled) may be the way to go.

@AnthonyRuelle
Copy link

even setting color: false, the processing crashes

image

Has anyone managed to resolve this issue?

@soarding
Copy link

soarding commented Jul 7, 2023

Same problem here, Has anyone managed to resolve this issue

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

No branches or pull requests

4 participants