-
-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Couldn't find intersection #904
Comments
Same |
I'm also getting a pretty much identical stack trace when I updated to
|
I'm also getting the same stack trace with "babel-preset-minify": "^0.5.0-alpha.9". |
I have the same versions of libs and I had the same issue. Disabling
It's like a temporary fix |
Have the same problem. For me it crashes when optimizing following file:
|
confirm that @goozler solution works also for me with the same problems... it works setting only builtIns to false Example here https://github.com/wende60/Javascript-Gallery |
Same here. I tried to upgrade to Babel 7 because of #556, and now the error journey just continues... Pretty disappointing experience. |
Same error |
Same issue, downgraded to 0.3.0 and it works okay now. "babel-preset-minify": "^0.3.0", |
Same issue... any solution? For me not works in CLI and in babel preset. |
I downgraded to ^0.4.3 to get it working. |
I'm experiencing this problem as well... Any solutions? |
For me this is a problem when I minify multiple files or some files that are > 1MB. If I minify files one by one - everything is ok. However minify files one by one is annoying and this should be fixed ASAP. |
I just switched from babel-preset-babili to babel-preset-minify and I am experiencing the same problem. @goozler s solution worked for me. |
I am experiencing the same problem right now, what's weird is that it works on my PC locally, but when I deploy it to Heroku it crashes
|
I tried to use |
Same issue here. |
Same issue here. Changing |
In my case this happens intermittently (I'm not sure when) but I've never experienced this when building locally. However, building using |
In my case it throws this if I use |
I've found this error to be thrown when using |
Oddly, while the 'builtIns': false did work, it did not help me when using babel minify in NPM. I'm actually not even sure how to put that override in the CLI - e.g. npm run build. But, when I found the offending js program, and compiled/minified that separately it did work. So, I ended up with a package.json file with min and non-min build commands (where c.js was causing intersection issue)
|
Same issue here, ok locally but not on Heroku. Would appriciate to know how you fixed it ? |
Hi. "build-min": "babel ./a.js ./b.js --presets minify --out-dir ./build && babel ./c.js --presets minify --out-dir ./public/build"} |
[Old timer issue](babel/minify#904 (comment)).
Take care if you are using Math.
I was solve my issue changing Math.abs `let movX = currentPosX - this.path[0].posX; if(movX < 0) movX = (-1) * movX; |
just happend across this problem with Here's the link to the commit where I pushed my current configs: https://github.com/Mitsunee/fox-timers/commit/5a57968d9209a5a34f04952e9954359ab9e80b40 |
Any update ? |
Still reproduced for me with multiple webpack configurations |
Still an issue for me.
Solved with
|
Yes, still an issue for me.
|
Still an issue. For me, it happens because of |
Thanks! That worked for me. And for those using gulp-babel-minify:
|
Error: - Starting 'jsCompile'... 'jsCompile' errored after 341 ms Error in plugin "gulp-babel" Message: /Applications/MAMP/htdocs/calendar/src/js/pages/_pages-calendar-1.js: Couldn't find intersection Solution: - Update the `babel` configuration in the `jsCompile` gulp function. Call the `babel-preset-minify` package with the name `minify` instead and disable the `builtIns` and `mangle` options. Reason: - The reason behind this change may be the use of a newer version of Babel or a related library. The syntax `babel-preset-minify` has been replaced by simply `minify with additional options to customize the behavior of the minification process. The `"builtIns": false` and `"mangle": false` options are disabled in the Babel configuration to prevent the transformation of new native JavaScript methods and objects and to keep variable and property names non-obfuscated, respectively. References: - babel/minify#904 (comment) - https://www.npmjs.com/package/babel-preset-minify
Still had this issue, workaround I had for still being able to have minified code in my build was this:
Hope this helps anyone still having this issue in 2024! |
Hello,
and it worked for me. |
Late 2024, same error, two options, each with their own reason for throwing:
|
Describe the bug
After updating to 0.5, I started getting these errors...
Stack Trace
Configuration
babel-minify preset in babel config
babel-minify version:
0.5.0
babel version :
7.1.0
babel-minify-config:
babelrc:
The text was updated successfully, but these errors were encountered: