Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Type checking module with conditional imports - Nuxt
N
Nuxt
•
13mo ago
•
4 replies
rd
Type checking module with conditional imports
I have a module that conditionally calls
addImports
addImports
, depending on the Nuxt configuration
.
Type checking fails unless a configuration is passed that results in all those conditional
addImport
addImport
being executed
. For example some plugins
(that are also conditionally added using
addPlugin
addPlugin
) use imports that may not be present
, so
vue-tsc
vue-tsc
will fail
.
What
's the normal way of getting around this so type checking can pass regardless of config
?
Nuxt
Join
Nuxt Community Chat Server
31,788
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Nuxt UI Imports within Nuxt Module
N
Nuxt / ❓・help
2mo ago
type checking custom AppConfig entries
N
Nuxt / ❓・help
2y ago
Type checking components in markdown
N
Nuxt / ❓・help
3y ago