Comments (8)
Thank you for the repo and the efforts. I've updated the version of popmotion and framesync. Building works for me now. For dev, tslib seems to be in a format, which vite 4 currently does not like.
Bloody workaround is to go into node_modules/tslib:
- Add 'type':'module' in package.json
- In tslib/modules/index.js change first line to ˋimport * as tslib from '../tslib.js'ˋ
Hope this helps.
from svelte-motion.
hmmm...wondering if popmotion needs to updated to a more recent version? it's on 11.0.5 but the version in the svelte-motion package.json is 9.3.5...I figure you are aware of that, but maybe something has been updated since then that might affect this error?
from svelte-motion.
another update...pushed it to github and it built and runs in production...just totally broken in dev.
from svelte-motion.
got another one tonight trying to re-install the library:
Cannot read properties of undefined (reading 'linear')
TypeError: Cannot read properties of undefined (reading 'linear')
at /node_modules/svelte-motion/src/animation/utils/easing.js:12:12
at async instantiateModule (file:///Users/rchrdnsh/Code/Svelte/RYKR-kit/node_modules/vite/dist/node/chunks/dep-ed9cb113.js:53246:9)
...which seems to be a similar type of issue, just with something different. Maybe it's due to Vite 4.0.0 switching to Rollup 3.something...
from svelte-motion.
got another one tonight trying to re-install the library:
Cannot read properties of undefined (reading 'linear') TypeError: Cannot read properties of undefined (reading 'linear') at /node_modules/svelte-motion/src/animation/utils/easing.js:12:12 at async instantiateModule (file:///Users/rchrdnsh/Code/Svelte/RYKR-kit/node_modules/vite/dist/node/chunks/dep-ed9cb113.js:53246:9)...which seems to be a similar type of issue, just with something different. Maybe it's due to Vite 4.0.0 switching to Rollup 3.something...
I'm getting this one as well after update SvelteKit / Vite 4.0.1
from svelte-motion.
gonna try and make a minrep of this...
from svelte-motion.
k, here is the minrep:
https://github.com/rchrdnsh/motion-issue
simply a skeleton kit project with the latest kit and vite, with only one <Motion>
component imported into only one +page.svelte
same error message...
from svelte-motion.
yay, thank you, I got it working now as well...
Was looking at the tslib package file and noticed this:
"exports": {
".": {
"module": "./tslib.es6.js",
"import": "./modules/index.js",
"default": "./tslib.js"
},
"./*": "./*",
"./": "./"
}
...maybe there is a way of specifying ESM vs CJS or soemthing when importing from the lib? I don't understand this stuff very much, tho...
from svelte-motion.
Related Issues (20)
- AnimateSharedLayout TS type error with svelte kit HOT 1
- Noticing a 1 pixel shift during animation... HOT 1
- How to fill AnimatePresence list prop if there is only 1 child
- Animate on unmount
- AnimatePresence onUpdate/exit is broken after HMR happens
- Type checking disable for whileDrag HOT 1
- ERROR: Cannot read properties of undefined (reading 'update') HOT 9
- Getting odd warning? svelte is the type in package.json? HOT 2
- Add a Changelog
- Why use tslib? HOT 2
- Animations don't load/run when built statically HOT 2
- useInView hook would be useful
- How can I use useDragControls HOT 2
- Animate Presences
- Is this library still actively maintained? HOT 17
- Style Tags on MotionDiv elements not working
- Svelte svg M not working
- style motion props not working as expected HOT 1
- Typescript update PR HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from svelte-motion.