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

Allotment - Typedefinition not found #717

Closed
argawow opened this issue Nov 4, 2023 · 5 comments
Closed

Allotment - Typedefinition not found #717

argawow opened this issue Nov 4, 2023 · 5 comments
Assignees

Comments

@argawow
Copy link

argawow commented Nov 4, 2023

I have changed my React-Project to Vite and now I have problems to import allotment. It works like expected, but when it comes to the production build i get this error

` Could not find a declaration file for module 'allotment'. 'C:/.....s/visualstudio/projekte/....C/client-app/node_modules/allotment/dist/modern.mjs' implicitly has an 'any' type.
There are types at 'C:....../client-app/node_modules/allotment/dist/types/src/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'allotment' library may need to update its package.json or typings.

8 import { Allotment, AllotmentHandle } from "allotment";`

Can some help me out here?

@vojtatom
Copy link

vojtatom commented Nov 7, 2023

Same issue here with npm 10.1.0 when using this package in Next.js project.

@vojtatom
Copy link

vojtatom commented Nov 7, 2023

seems like a duplicate of #669

@johnwalley johnwalley self-assigned this Dec 28, 2023
@johnwalley
Copy link
Owner

johnwalley commented Dec 28, 2023

Looking into this. I've got a variety of Vite and NextJS projects to, hopefully, reproduce this against.

Edit: I see the problem

@johnwalley
Copy link
Owner

I'd appreciate it if you could see if v1.19.4 helps?

@InsidersByte
Copy link

@johnwalley it's fixed for me (using Next.js v14.0.3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants