Skip to content
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

Module build failed (from ./node_modules/babel-loader/lib/index.js): Error: Couldn't find intersection #9866

Open
aprilmintacpineda opened this issue Apr 17, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@aprilmintacpineda
Copy link

commented Apr 17, 2019

Bug Report

Current Behavior

Throw the following error:

Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Couldn't find intersection
    at NodePath.getDeepestCommonAncestorFrom (/Users/projects/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/ancestry.js:153:11)
    at getSegmentedSubPaths (/Users/projects/node_modules/babel-plugin-minify-builtins/lib/index.js:244:14)

Input Code

  • REPL or Repo link if applicable:
console.log(Math.abs(10 - 11));

Expected behavior/code
A clear and concise description of what you expected to happen (or code).

Babel Configuration (.babelrc, package.json, cli command)

/** @format */

module.exports = {
  presets: [
    [
      '@babel/preset-env',
      {
        loose: true
      }
    ],
    '@babel/preset-flow',
    'babel-preset-minify'
  ],
  plugins: [
    '@babel/plugin-transform-runtime',
    'babel-plugin-inferno',
    '@babel/plugin-syntax-jsx',
    '@babel/plugin-syntax-dynamic-import'
  ]
};

Environment

"@babel/core": "^7.4.3",
"@babel/node": "^7.2.2",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/plugin-syntax-jsx": "^7.2.0",
"@babel/plugin-transform-runtime": "^7.4.3",
"@babel/preset-env": "^7.4.3",
"@babel/preset-flow": "^7.0.0",
"@babel/runtime": "^7.4.3",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.0.1",
"babel-loader": "^8.0.5",
"babel-plugin-inferno": "^6.0.5",
"babel-preset-minify": "^0.5.0",
  • Node/npm version: Node 11.14.0/npm 6.9.0
  • OS: MacOS Mojave 10.14.3
  • Monorepo: I don't know what this is
  • How you are using Babel: loader

Additional context/Screenshots

I noticed that the error wouldn't occur with the following:

'@babel/preset-flow',
[
  'babel-preset-minify',
  {
    builtIns: false
  }
]
@babel-bot

This comment has been minimized.

Copy link
Collaborator

commented Apr 17, 2019

Hey @aprilmintacpineda! We really appreciate you taking the time to report an issue. The collaborators
on this project attempt to help as many people as possible, but we're a limited number of volunteers,
so it's possible this won't be addressed swiftly.

If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack
community
that typically always has someone willing to help. You can sign-up here
for an invite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.