-
-
Notifications
You must be signed in to change notification settings - Fork 366
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
Cannot find module '@uni' or its corresponding type declarations. #4399
Comments
You should add the alias to the tsconfig that includes your app. |
@RayGuo-ergou What do you mean? Because I included in tsconfig/include |
You only include |
I edited my issue to be clearer. My problem appears at app-a (for example, app-b also). And I registered I know that in that way it was tell to typescript that using |
create e.g. - "include": ["../uni/**/*"],
+ "include": ["../uni/**/*", "./src/**/*"], Both IDE error and typecheck error due to this. |
Ah sure :D, I cutting include "./src/**/*" for reduce noise and only focus on |
I am building multiple apps with shared resources and here is my folder structure
⛳ In this way, I want to use uni for both
app-a
andapp-b
.Here is sample for
app-a
when using it belowapp-a/tsconfig.json
app-a/vite.config.ts
app-a/package.json
app-a/src/App.vue
With this way, I see minor error in app-a/src/App.vue:
It works well for both the dev and build-only. It only a typescript check, do not affect or crash app
But when i using command 'type-check' it make really error as this issue title
So, how i can resolve it? I really want to using type-check for safe check but with this way i must to ignore to finish build process :((
btw, if this issue done, it will affect to Volar? I don't want to see error during development time :(
Thank you
The text was updated successfully, but these errors were encountered: