question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New breaking error with latest kit and vite 4.0.0...

See original GitHub issue

to the latest kit and vite (1.0.0-next.581 for kit and 4.0.0 for vite) and getting the following breaking error:

Cannot read properties of undefined (reading '__assign')
TypeError: Cannot read properties of undefined (reading '__assign')
    at /node_modules/svelte-motion/node_modules/popmotion/node_modules/style-value-types/dist/es/numbers/index.js:9:12
    at async instantiateModule (file:///Users/rchrdnsh/Code/Svelte/RYKR-kit/node_modules/vite/dist/node/chunks/dep-ed9cb113.js:53246:9)

…dunno what’s going on, but site updates are out of commission until this can be resolved.

Issue Analytics

  • State:open
  • Created 9 months ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
micha-lmxtcommented, Dec 14, 2022

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.

0reactions
rchrdnshcommented, Dec 14, 2022

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…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrade to Vite 4 #7543 - sveltejs/kit
Just tried to recreate the issue in StackBlitz but it seems to work fine, so guessing it's something specific to this (private) repo....
Read more >
Vite ⚡(@vite_js)さん / Twitter
Vite is a next-gen build tool that gives Storybook 7.0 fast startup and instant reloads. We now support automatic configuration from your Vite...
Read more >
Failed to fetch dynamically imported module" on Vue/Vite ...
In my case the error was caused by not adding .vue extension to module name. import MyComponent from 'components/MyComponent'.
Read more >
9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d
Vite seems to have troubles to correctly resolve node modules that have exports defined in their package.json . This issue includes a repro...
Read more >
MDB 5 Changelog
Breaking changes: We changed Animations init via jQuery. In MDB 5.0.0 we fixed init, but didn't take into account that it would break...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found