errors only show up on build, fine otherwise
See original GitHub issueHi. These errors only show up on build
.
Is there a way to bypass them?
The project runs fine in dev
node_modules/vite-plugin-vue-layouts/client.d.ts:3:19 - error TS7010: 'setupLayouts', which lacks return-type annotation, implicitly has an 'any' return type.
3 export function setupLayouts(routes: RouteRecordRaw[])
~~~~~~~~~~~~
node_modules/vite-plugin-vue-layouts/client.d.ts:8:19 - error TS7010: 'setupLayouts', which lacks return-type annotation, implicitly has an 'any' return type.
8 export function setupLayouts(routes: RouteRecordRaw[])
~~~~~~~~~~~~
node_modules/vite-plugin-vue-layouts/client.d.ts:9:19 - error TS7010: 'createRouterLayout', which lacks return-type annotation, implicitly has an 'any' return type.
9 export function createRouterLayout(
~~~~~~~~~~~~~~~~~~
node_modules/vite-plugin-vue-layouts/client.d.ts:10:46 - error TS2304: Cannot find name 'Component'.
10 resolve: (layoutName: string) => Promise<Component | { default: Component }>)
~~~~~~~~~
node_modules/vite-plugin-vue-layouts/client.d.ts:10:69 - error TS2304: Cannot find name 'Component'.
10 resolve: (layoutName: string) => Promise<Component | { default: Component }>)
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Visual Studio displaying errors even if projects build
If you have ReSharper, try emptying the ReSharper cache: In menu, ReSharper > Options > Environment > General > Clear Caches. and disabling...
Read more >No errors displayed in the "Error List" (error list doesn't show ...
Possible fix or workaround: Make sure you use "Build + IntelliSense" in the Error List pane. When only "Build" is selected, no errors...
Read more >There were build errors....... but it doesn't show any errors in ...
User-1289986997 posted. Hello all, I have a strange problem. I have been working on a website, and after finishing a page, I hit...
Read more >Builds failing, but only indication is dashboard 'error' badge
The branch builds and runs locally (win 10, node 9 using bash for windows) in ~120 seconds with no errors. However, when deploying...
Read more >Xcode 13.2 - Internal error : Miss… | Apple Developer Forums
Hi guys, just updated Xcode to 13.2 via Mac App Store. I installed the additional components, and my project won't compile anymore :...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@gigioSouza Will get this merged this weekend, thank you!
@CharlesOkwuagwu while the solution isn’t merged, you can do the same as I.
Create a file named
vite-plugin-vue-layouts.d.ts
in your projects root dir with the following content.And then in your
tsconfig.json
add"vite-plugin-vue-layouts.d.ts"
to theinclude
attribute.