Giter Site home page Giter Site logo

Comments (8)

micha-lmxt avatar micha-lmxt commented on July 30, 2024 3

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:

  1. Add 'type':'module' in package.json
  2. In tslib/modules/index.js change first line to ˋimport * as tslib from '../tslib.js'ˋ

Hope this helps.

from svelte-motion.

rchrdnsh avatar rchrdnsh commented on July 30, 2024

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.

rchrdnsh avatar rchrdnsh commented on July 30, 2024

another update...pushed it to github and it built and runs in production...just totally broken in dev.

from svelte-motion.

rchrdnsh avatar rchrdnsh commented on July 30, 2024

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.

tiagoapp avatar tiagoapp commented on July 30, 2024

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.

rchrdnsh avatar rchrdnsh commented on July 30, 2024

gonna try and make a minrep of this...

from svelte-motion.

rchrdnsh avatar rchrdnsh commented on July 30, 2024

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.

rchrdnsh avatar rchrdnsh commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.