barba icon indicating copy to clipboard operation
barba copied to clipboard

Typescript can't find declaration folder because the name is wrong

Open tidurand opened this issue 1 year ago • 8 comments

What version are you using?

2.10.0

What package are you using?

@barba/core

Describe your issue

There is this issue "Could not find a declaration file for module '@barba/core'." with typescript

Because in package.json there is : "types": "dist/core/src/typings" But currently the correct folder is : "types": "dist/core/src/src"

tidurand avatar Jun 28 '24 11:06 tidurand

Hello @tidurand 👋

Thanks for getting in touch! Looks like more an issue when publishing to NPM as well, this will be fixed in the next release.

Keep this issue open as a reminder 😉

xavierfoucrier avatar Jul 01 '24 09:07 xavierfoucrier

Hi @xavierfoucrier, seems that this has not yet been fixed in the current 2.10.2 version. 😟 Any updates on this issue? Thank you!

CptCompiler avatar Aug 06 '24 09:08 CptCompiler

@CptCompiler 👋 yup, I know, probably due to microbundle or lerna as well. Need to investigate.

xavierfoucrier avatar Aug 06 '24 09:08 xavierfoucrier

any update on when this will get resolved?

joshua-isaac avatar Aug 12 '24 19:08 joshua-isaac

Hello, not critical currently, should be fixed soon, thanks!

xavierfoucrier avatar Aug 13 '24 09:08 xavierfoucrier

Thought I'd bump this up as I understand that this is not critical, but just looking to see when this will be fixed. Just tried in NextJS and still getting this error 👍

darcynoa avatar Feb 08 '25 12:02 darcynoa

I seem to have bumped into the same situation... Has anyone found a solution yet?

kurtiz avatar Feb 12 '25 19:02 kurtiz

Hello everyone,

Bug has already been fixed, but is not published currently. I have to deal with new CI / tests issues, when it's done, a new version will be pushed to NPM.

See https://github.com/barbajs/barba/issues/753#issuecomment-2553108878 for those who are working with NextJS or another JS framework.

xavierfoucrier avatar Feb 12 '25 20:02 xavierfoucrier