New breaking error with latest kit and vite 4.0.0...
See original GitHub issueto 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:
- Created 9 months ago
- Comments:8 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

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:
Hope this helps.
yay, thank you, I got it working now as well…
Was looking at the tslib package file and noticed this:
…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…