You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use @viselect/react in my Next.js project with TypeScript. However, I'm encountering an issue where TypeScript is unable to find a declaration file for the @viselect/react module. This is causing my build to fail.
What is the current behavior?
When I try to import @viselect/react into my project, I get the following error:
Could not find a declaration file for module ‘@viselect/react’. ‘…/node_modules/@viselect/react/dist/viselect.mjs’ implicitly has an ‘any’ type.
Please provide the steps to reproduce and create a CodeSandbox.
Unfortunately, I'm unable to provide a CodeSandbox link as this issue is occurring in my local development environment. However, here are the steps to reproduce:
Create a new Next.js project with TypeScript.
Install @viselect/react using npm or yarn.
Try to import @viselect/react into a component.
What is the expected behavior?
I expect to be able to import @viselect/react without any TypeScript errors.
Your environment:
Toolset: vite
Version (@viselect/react): 3.4.0
Browser: Chrome (latest)
OS: Windows
Framework: ReactJS
Library: NextJS
Language: Typescript
The text was updated successfully, but these errors were encountered:
What is the problem?
I'm trying to use
@viselect/react
in my Next.js project with TypeScript. However, I'm encountering an issue where TypeScript is unable to find a declaration file for the@viselect/react
module. This is causing my build to fail.What is the current behavior?
When I try to import
@viselect/react
into my project, I get the following error:Could not find a declaration file for module ‘@viselect/react’. ‘…/node_modules/@viselect/react/dist/viselect.mjs’ implicitly has an ‘any’ type.
Please provide the steps to reproduce and create a CodeSandbox.
Unfortunately, I'm unable to provide a CodeSandbox link as this issue is occurring in my local development environment. However, here are the steps to reproduce:
@viselect/react
using npm or yarn.@viselect/react
into a component.What is the expected behavior?
I expect to be able to import
@viselect/react
without any TypeScript errors.Your environment:
Toolset: vite
Version (@viselect/react): 3.4.0
Browser: Chrome (latest)
OS: Windows
Framework: ReactJS
Library: NextJS
Language: Typescript
The text was updated successfully, but these errors were encountered: