Inferred type of createApp
mgrybyk opened this issue · comments
Mykola Grybyk commented
Describe the bug
I see error in VSCode in main.ts
file.
The inferred type of 'createApp' cannot be named without a reference to '../node_modules/vite-ssg/dist/shared/vite-ssg.8870dace'. This is likely not portable. A type annotation is necessary.
Reproduction
https://github.com/mgrybyk/char-guess
System Info
System:
OS: macOS 12.7
CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
Memory: 2.65 GB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 20.9.0 - ~/.nvm/versions/node/v20.9.0/bin/node
npm: 10.2.4 - ~/.nvm/versions/node/v20.9.0/bin/npm
Used Package Manager
npm
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- The provided reproduction is a minimal reproducible of the bug.
Shenenkaka commented
my tmp approach is to redefine ->_<-
export const createApp: (client?: boolean, routePath?: string) => Promise<ViteSSGContext<true>> = ViteSSG(...)
Fanom2813 commented
same here