We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug A clear and concise description of what the bug is.
To Reproduce Add to your app.ts
import { Dialog, Notify, Quasar, type QuasarPlugins } from 'quasar'; import { createApp } from 'vue'; const vue = createApp({ inheritAttrs: false, }).use(Quasar, { plugins: [Dialog, Notify] as QuasarPlugins, })
Or to any other file import a type from quasar
import { QTableProps } from 'quasar';
The build fails with error Error: Unknown import from Quasar: QTableProps
Error: Unknown import from Quasar: QTableProps
If you remove the rule from webpack, then it all imports correctly
This is because the plugin runs a "dumb" transform on the import and doesn't know if the user is importing a type or an actual js export
This works correctly if the js-transform-quasar-imports is added before the ts-loader but it's not the case by default
js-transform-quasar-imports
ts-loader
Expected behavior The build to not fail when importing a type
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Add to your app.ts
Or to any other file import a type from quasar
The build fails with error
Error: Unknown import from Quasar: QTableProps
If you remove the rule from webpack, then it all imports correctly
This is because the plugin runs a "dumb" transform on the import and doesn't know if the user is importing a type or an actual js export
This works correctly if the
js-transform-quasar-imports
is added before thets-loader
but it's not the case by defaultExpected behavior
The build to not fail when importing a type
The text was updated successfully, but these errors were encountered: