popmotion icon indicating copy to clipboard operation
popmotion copied to clipboard

npm import not working using bundler (parcel)

Open erik-valtechsd opened this issue 3 years ago • 5 comments

Hello - installing popmotion and bundling using parcel returns "TypeError ... tween is not defined" etc

I tried another bundler and got similar issues. I then installed an older version of popmtion npm i [email protected] and everything works.

I'm on mac 10.15.7

erik-valtechsd avatar Mar 18 '21 16:03 erik-valtechsd

When installing version 9 into an existing project that's using earlier APIs this would be the expected result. The API has changed almost completely so there is no tween etc.

stokesman avatar Mar 22 '21 17:03 stokesman

I was using the quickstart examples but I guess those are deprecated now?

erik-valtechsd avatar Mar 22 '21 17:03 erik-valtechsd

Yes, I guess they'd be considered deprecated.

While those pages aren't linked to from the homepage, if they are to be kept online it probably should be made more clear they aren't current and the installation section should be updated for installing v8 specifically. Not sure what the library author wants to do there.

stokesman avatar Mar 22 '21 19:03 stokesman

The API is linked on the homepage with references to Tween etc. Perhaps a deprecated notice on these pages would avoid confusion.

erik-valtechsd avatar Mar 23 '21 07:03 erik-valtechsd

I'd meant they're not linked from the root homepage https://popmotion.io/ but I agree about the deprecation notice. According to https://github.com/Popmotion/popmotion/issues/898#issuecomment-723894512 the intention is to add one.

stokesman avatar Mar 23 '21 15:03 stokesman