[BUG] Bundling breaks in 6.2.9
See original GitHub issueI just noticed the bundling breaks in the latest version (6.2.9
). I’ll follow this up with more details shortly.
Issue Analytics
- State:
- Created a year ago
- Reactions:4
- Comments:6
Top Results From Across the Web
Known issues - Fortinet Documentation Library
The following issues have been identified in version 6.2.9. To inquire about a particular bug or report a bug, please contact Customer Service...
Read more >FortiOS 6.2.5 Release Notes - Amazon AWS
Amazon AWS enhanced networking compatibility issue ... Prevent BGP daemon crashing when peer breaks TCP connection.
Read more >Atlassian Plugin SDK - Windows - Version history
Version history · ATLASSDK-15: Plugin SDK installer overwrites users Path on Windows · ATLASSDK-78: Severe errors appearing in Confluence logs when using atlas- ......
Read more >Cisco Firepower Release Notes, Version 6.2.3 Patches
Depending on how and when a bug was categorized or updated in our system, ... CSCvs84578: Upgrading FTD on 4100/9300 Platform to 6.2.3.15...
Read more >Change Logs — PyArmor 7.6.0 documentation
The scripts are obfuscated by old version could not work with this version, they must be obfuscated again. 6.2.9¶. Fix cross platform bug:...
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 FreeTop 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
Top GitHub Comments
I guess I have a similar problem. I have updated to
webpack 5.72.0
and now I get the error:Framer motion version is
v6.2.9
UPDATE
I have managed to get it working! 🙌 I’m not really sure what I’m doing anymore - literally randomly trying out things to get stuff working… What has happened to the JavaScript world? Almost every package I had was updated and resulted in breaking changes - I need a new job 🙈
Solution (at least for me): Use Webpack’s ProvidePlugin to resolve the missing variable
process
. I personally use Craco so I had to add to thecraco.config.js
:Don’t forget to install via
yarn add -D process
The key was to add the extension “.js” to
process/browser
- guess this is the same if you use webpack only.Here’s a more detailed error from Webpack:
If you look at the file it’s complaining about you see:
My understanding of what’s happening is:
exports
frompackage.json
which point to the ESM build (not the CJS build)utils/process
ends in.mjs
so it’s treated as an ESM module by Node and Webpackprocess
toprocess/browser
which is a module pathThe issue isn’t really in the Framer Motion package; it’s that the ProvidePlugin configuration is injecting a Node style module specifier into an ESM module.
If you don’t need
process
to work for other packages the simplest fix is to just remove that ProvidePlugin from you configuration. If that’s the only Framer Moton code usingprocess
it should work fine without the polyfill.