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

Type error: Cannot find name 'Mode'. #18

Open
andregamma opened this issue Nov 11, 2020 · 2 comments
Open

Type error: Cannot find name 'Mode'. #18

andregamma opened this issue Nov 11, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@andregamma
Copy link

  • windmill-react-ui version: 0.4.1

What you did:

Updated Windmill to the lastest version (with Typescript)

What happened:

I'm deploying my NextJS project on Vercel and I'm receiving an error on build that says Type error: Cannot find name 'Mode'. Seems that the index.d.ts from types folder is not loading on my project or something like that, (sorry if I'm wrong, I started to use Typescript not a long time ago). My Visual Studio Code shows the following message on @windmill/react-ui import:

Could not find a declaration file for module '@windmill/react-ui'. 'c:/Users/toeof/Documents/React Projects/repair-service/frontend-next/node_modules/@windmill/react-ui/dist/index.js' implicitly has an 'any' type.
Try npm install @types/windmill__react-ui if it exists or add a new declaration (.d.ts) file containing declare module '@windmill/react-ui';

Error on Vercel:
image

@estevanmaito estevanmaito added the bug Something isn't working label Nov 13, 2020
@cgc2109748
Copy link

I also encountered the same problem

@sumgwork
Copy link

I had to temporarily add a custom type Mode in typings to make it work.

type Mode = string | null;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants