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

Nuxt missing deps #1783

Closed
laylatichy opened this issue May 19, 2024 · 11 comments · Fixed by #1800
Closed

Nuxt missing deps #1783

laylatichy opened this issue May 19, 2024 · 11 comments · Fixed by #1800
Assignees
Labels
bug Something isn't working

Comments

@laylatichy
Copy link

laylatichy commented May 19, 2024

What happens?

Just tried setting up nuxt scalar since you introduced multiple api specs but it keeps crashing with missing deps

What did you expect to happen?

working demo ;)

How can we reproduce the issue?

https://codesandbox.io/p/devbox/nuxt-playground-forked-32ms33

once the hydration kicks in You will see 500 error

image

first I thought it might be related to pnpm modules resolution so tried shameful hoisting, then tried npm, yarn but still the same

Swagger/OpenAPI Example

No response

@laylatichy laylatichy added the bug Something isn't working label May 19, 2024
@amritk
Copy link
Member

amritk commented May 20, 2024

Oh this was definitely fixed... Hmm Ill take a look

@max06
Copy link

max06 commented May 21, 2024

I have to confirm this... for me it's breaking for highlight.js. (0.0.53)

@laylatichy
Copy link
Author

laylatichy commented May 21, 2024

@marclave marclave reopened this May 21, 2024
@marclave
Copy link
Member

thanks @laylatichy ! was automatically closed with the reference.

@amritk lets take a look at this? : )

@amritk
Copy link
Member

amritk commented May 21, 2024

Yep taking a look now, so this exact error was fixed but it seems its come back

@amritk
Copy link
Member

amritk commented May 24, 2024

Alright this specific issue should be fixed in #1843, there's a couple more minor things to fix but this should get nuxt working!

@amritk
Copy link
Member

amritk commented Jun 3, 2024

Hi @laylatichy were you using pnpm by any chance? Currently the module (v0.1.5) is working for:

What currently does not work is pnpm without shamefully-hoist, we are currently working on figuring out a solution.

@laylatichy
Copy link
Author

@amritk

indeed seems to work with hoist on pnpm now, thank you

@laylatichy
Copy link
Author

laylatichy commented Jun 4, 2024

@amritk sorry to ping you, but as You are on the nuxt integration I think maybe You can help with it

setting pathRouting basePath to '/' causes all side menus to ignore the domain

image

and redirect to etc
image

https://codesandbox.io/p/devbox/nuxt-playground-forked-32ms33

with anything else like '/xxxxx' url in the side menu is generated fine, is it like that by design or something to fix?

@amritk
Copy link
Member

amritk commented Jun 4, 2024

hey @laylatichy mind opening a new ticket for that? then we can close this one and it'll be easier to track

@amritk
Copy link
Member

amritk commented Jun 5, 2024

Closing this ticket as completed

@amritk amritk closed this as completed Jun 5, 2024
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

Successfully merging a pull request may close this issue.

4 participants