-
-
Notifications
You must be signed in to change notification settings - Fork 155
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
Component Framework global components are not correctly loaded when using pug + scoped style #138
Comments
The value of the Also, let me move over my text from Discord to here so that it's more readable and copyable.
|
This is intended. When
I think doing something similar to this would be more future-proof. const f = id => {
if (id.endsWith('.vue')) return true
const { query } = parseVueRequest(id)
return (
query.vue &&
(query.type === 'script' || query.type === 'template')) &&
('lang.ts' in query || 'lang.js' in query)
)
} |
@sapphi-red I wonder if plugin-vue should export some utilities to handle these cases. It could be easier to change internals later |
Describe the bug
With Quasar I'm using the
@quasar/vite-plugin v1.1.1
and the plugin propertyautoImportComponentCase: 'pascal'
When using this in combination with a
template lang=pug
andstyle scoped
I get warnings and a blank white page with no rendered content.At Quasar Land (Discord) we (@yusufkandemir, @patak-dev and me) already found out that there is a new incompatibility coming from
@vitejs/plugin-vue >= v3
and that the template also gets applied a scoped query param where as when not using pug it does not.https://discord.com/channels/415874313728688138/902518756436226079/1002122942852902964
https://discord.com/channels/415874313728688138/902518756436226079/1002127704138715176
Current workaround:
Using a css class named like the component and use that instead of
scoped
keyword.Reproduction
https://stackblitz.com/edit/vitejs-vite-llrb6t?file=src%2FApp.vue,package.json,src%2Fmain.ts,vite.config.ts&terminal=dev
System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: