skevy / wobble

A tiny (~1.7 KB gzipped) spring physics micro-library that models a damped harmonic oscillator.

Home Page:https://wobble-demos.now.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Published build doesn't seem to be working in Material Motion

appsforartists opened this issue · comments

I'm setting up a new computer. When I use Wobble straight from yarn, I get this error:

  Error   Cannot find module 'wobble' from 'node_modules/material-motion/src/interactions/NumericSpring.ts'

When I link from source, it's fixed:

❯ git clone git@github.com:skevy/wobble.git
❯ cd wobble/
❯ yarn
❯ yarn link
❯ cd ~/Projects/material-motion-js/packages/core
❯ yarn link wobble

Haven't taken the time to figure out why yet. Could be a local issue, but thought I'd file it while it's fresh in my mind.

(Note, I could require('wobble') from node in the published build, so I'm presuming it's a problem with how the types are being loaded.)

Must be a local issue. If I delete everything in my local clone that isn't in the published version, it still works.

Fucking weird.

Aaand, now I unlinked and it's still working. (╯°□°)╯︵ ┻━┻