Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C condenser
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 44
    • Issues 44
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • hive
  • condenser
  • Issues
  • #166

Closed
Open
Created Jan 07, 2022 by Jason Salyers@jsalyersMaintainer

build instructions not working

there is a line in the build instructions for running the command: yarn add babel-cli but this seems to cause issues. After doing that and trying to build, you get errors about an unsupported version of babel.

Error: Requires Babel "^7.0.0-0", but was loaded with "6.26.0". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.
    at throwVersionError (/home/syncad/src/condenser/node_modules/@babel/helper-plugin-utils/lib/index.js:65:11)
    at Object.assertVersion (/home/syncad/src/condenser/node_modules/@babel/helper-plugin-utils/lib/index.js:13:11)
    at /home/syncad/src/condenser/node_modules/@babel/plugin-transform-runtime/lib/index.js:29:7
    at /home/syncad/src/condenser/node_modules/@babel/helper-plugin-utils/lib/index.js:19:12
    at Function.memoisePluginContainer (/home/syncad/src/condenser/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:113:13)
    at Function.normalisePlugin (/home/syncad/src/condenser/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:146:32)
    at /home/syncad/src/condenser/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:184:30
    at Array.map (<anonymous>)
    at Function.normalisePlugins (/home/syncad/src/condenser/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20)
    at OptionManager.mergeOptions (/home/syncad/src/condenser/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36)
    at OptionManager.init (/home/syncad/src/condenser/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
    at compile (/home/syncad/src/condenser/node_modules/babel-register/lib/node.js:103:45)
    at loader (/home/syncad/src/condenser/node_modules/babel-register/lib/node.js:144:14)
    at Object.require.extensions.<computed> [as .js] (/home/syncad/src/condenser/node_modules/babel-register/lib/node.js:154:7)
    at Module.load (internal/modules/cjs/loader.js:986:32)
    at Function.Module._load (internal/modules/cjs/loader.js:879:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
    at Object.<anonymous> (/home/syncad/src/condenser/node_modules/babel-cli/lib/_babel-node.js:154:22)
    at Module._compile (internal/modules/cjs/loader.js:1138:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
    at Module.load (internal/modules/cjs/loader.js:986:32)
    at Function.Module._load (internal/modules/cjs/loader.js:879:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'BABEL_VERSION_UNSUPPORTED',
  version: '6.26.0',
  range: '^7.0.0-0'
}

If you ignore that step, or refresh your package file after that step adds babel-cli, things seem to work as expected.

how we got it running on 2 dev machines this morning after running the yarn add babel-cli step:

git checkout -- package.json
yarn install --ignore-optional --frozen-lockfile
yarn run build

there are some entries in package.json about babel, but nothing specifically for babel-cli (there is a babel/cli entry though..)

My best guess is some conflict between npm and yarn, but I'm not positive. Someone with more package experience could probably offer a better explanation/fix for it.

Assignee
Assign to
Time tracking