Skip to content
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

Inferred type of createApp #383

Open
5 tasks done
mgrybyk opened this issue Nov 19, 2023 · 2 comments
Open
5 tasks done

Inferred type of createApp #383

mgrybyk opened this issue Nov 19, 2023 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@mgrybyk
Copy link

mgrybyk commented Nov 19, 2023

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.

image

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.
@antfu antfu added the help wanted Extra attention is needed label Nov 19, 2023
@Shenenkaka
Copy link

Shenenkaka commented Jan 6, 2024

my tmp approach is to redefine ->_<-
export const createApp: (client?: boolean, routePath?: string) => Promise<ViteSSGContext<true>> = ViteSSG(...)

@Fanom2813
Copy link

same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants