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

ERROR: Cannot start nuxt: _consola.default.withScope is not a function #2

Closed
ddahan opened this issue May 22, 2023 · 6 comments
Closed
Labels
bug Something isn't working

Comments

@ddahan
Copy link

ddahan commented May 22, 2023

Description

Nuxt can not start after nuxt-hue setup command has been completed, with the following error:

Error while requiring module /usr/local/lib/node_modules/nuxt-hue/dist/module.js: TypeError: _consola.default.withScope is not a function

Version

  • Operating System: Linux
  • Node Version: v18.16.0
  • Nuxt Version: 3.5.1
  • Nitro Version: 2.4.1

Reproduction

  • Install nuxt-hue as mentionned in their documentation
  • Configure with nuxt-hue setup
  • Start nuxt with npm run dev
@ddahan ddahan added the bug Something isn't working label May 22, 2023
@lihbr
Copy link
Owner

lihbr commented May 22, 2023

Hey there, thanks for trying out Nuxt Hue and submitting an issue!

In all frankness, I'm not really proactive in maintaining this fun module, however, this should now be fixed in 0.4.23 ☺️

https://github.com/lihbr/nuxt-hue/blob/master/CHANGELOG.md#0423-2023-05-22

Let me know fi it works on your end, or feel free to reopen~!

@lihbr lihbr closed this as completed May 22, 2023
@ddahan
Copy link
Author

ddahan commented May 22, 2023

Thanks for your answer.
Unfortunately, it seemed to work as my light color changed, but after that I get an error:

image

Anyway, thanks for trying.

@lihbr
Copy link
Owner

lihbr commented May 22, 2023

This seems like a regular Nuxt error, I don't think it's related to Nuxt Hue (the stack trace has nothing to do with it at least), the module is quite minimal in that regard and doesn't (shouldn't?) impact the runtime app 🤔

@huangxg
Copy link

huangxg commented May 30, 2023

I saw a similar error with nuxt-windicss 2.2.11 and nuxt 3.5.2. It seems an issue introduced by Nuxt 3.5.x

[error] Error while requiring module `nuxt-windicss`: TypeError: _consola.default.withScope is not a function
[error] _consola.default.withScope is not a function
  at node_modules/nuxt-windicss/dist/module.mjs:25:33

@huangxg
Copy link

huangxg commented May 30, 2023

The dependency of consola was introduced by nuxt/nuxt#20711, just before the 3.5.0 release.

@lihbr
Copy link
Owner

lihbr commented May 30, 2023

Yes, there's been an update of Nuxt's consola major version which some modules rely on implicitly leading to this kind of issues. We're working on fixing them ☺️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants