popmotion
popmotion copied to clipboard
npm import not working using bundler (parcel)
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
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.
I was using the quickstart examples but I guess those are deprecated now?
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.
The API is linked on the homepage with references to Tween etc. Perhaps a deprecated notice on these pages would avoid confusion.
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.