-
Notifications
You must be signed in to change notification settings - Fork 681
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
When running in pnpm workspace: "Pre-transform error: [@vue/compiler-sfc] Failed to resolve extends base type." #2291
Comments
Do you have |
Yes. In the reproduction script it does that: |
Just tried your script and it is invalid, the
Also, But anyway it works fine on my side. If the issue persists, could you please provide a repository as reproduction? Tailwind CSS v4 is not working on StackBlitz at the moment. |
@benjamincanac Just clone the repo and run:
|
@DevJoghurt You're missing two things in your reproduction:
|
Here is my reproduction repository https://github.com/jrutila/nuxt-ui-issue-2291. It is a little bit slimmer, even. @DevJoghurt are you running your project on Windows? Could that have to do something with this, if it works with @benjamincanac. |
@jrutila Same as @DevJoghurt reproduction, you're missing a |
@benjamincanac yes, just noticed that you meant the root Is it working as intended like that? Or is this just a workaround? |
And it works also if the root
|
Ok, thank you. I've got it working now too |
As to why we need to do this, it might be a limitation or bug of vue sfc compiler - will need to investigate more! |
Environment
Nuxt project info:
Version
3.0.0-alpha.4
Reproduction
I don't get to seem the reproduction work in stackblitz, so here's a
setup.sh
that will demonstrate the problem.Description
When
@nuxt/ui
3 is used in a pnpm workspace project, therun dev
fails on error: "Pre-transform error: [@vue/compiler-sfc] Failed to resolve extends base type."When the workspace is removed (remove
pnpm-workspace.yaml
and runpnpm install
in the project folder) the run works. Havingtypescript
indevDependencies
(as said in #1289 (comment)) does not help.Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: