-
Notifications
You must be signed in to change notification settings - Fork 27
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
Package needs to be installed twice with NPM #34
Comments
I suspect this may have something to do with the aliased+repackaged @tim-soft/react-spring@beta.34 Coincidentally I just started the upgrade to the official and stable @react-spring/web@9.2.1 here #35 It's mostly working but have a few things left to fix, the apis changed quite a bit between these two releases. When this is done (hopefully soon) i'll publish a new release and see if this is still an issue |
@tim-soft Thanks for the quick response and taking your time to work on this! Yes I believe your suspicion is right. Let me know if I can be any help on this :) |
@pswai I just released |
@tim-soft Thanks for the fix, the installation issue is now fixed. However I run into an error during runtime, this is the stacktrace. I'll do some investigation on my side as well.
This was running with
The call site looks like this <Lightbox
isOpen={show}
onPrev={gotoPrevious}
onNext={gotoNext}
images={images.map((image) => ({
src: image.large,
alt: productName,
}))}
currentIndex={currentImageIndex}
style={{ background: 'rgba(0,0,0,0.6)' }}
onClose={() => setShow(true)}
singleClickToZoom
/> |
@dineshpannu can you repro in a code sandbox? you wouldn't happen to be passing @pswai can you repro in a codesandbox? |
No it works perfectly on codesandbox 🤔 I'll continue to investigate |
@tim-soft Interestingly I could not repro in code sandbox, let me try setting up a minimal repo for it. |
fwiw the docs site is running nextjs 10 and you can check out the configs in that repo here https://github.com/tim-soft/next-portfolio |
What happened
There is a strange issue when installing with NPM that it requires 2
npm i
when the repo is clean.A minimal reproducible example is at https://github.com/pswai/react-spring-lightbox-install-issue
I have tried with Node 12 and 14. They create
package-lock.json
in slightly different formats but the issue remains.I have tried with Yarn also. With Yarn the
yarn.lock
file is consistent. However, when attempting that with my actual project repo, my unit test suites fail for places usingLightbox
. I don't have the error message at hand but I can provide if it helps.Tested environment
Step to reproduce
node_modules
folder if exists.npm i
.package-lock.json
is changed. (diff is attached)npm i
again.package-lock.json
is changed back.Changes to
package-lock.json
after the first runThe text was updated successfully, but these errors were encountered: