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

Latest release can't be built #2

Open
sembrestels opened this issue Jan 25, 2021 · 0 comments · May be fixed by #5
Open

Latest release can't be built #2

sembrestels opened this issue Jan 25, 2021 · 0 comments · May be fixed by #5
Labels
bug Something isn't working

Comments

@sembrestels
Copy link
Member

Describe the bug
The npm start script stops running with the latest aragon client commit.

To Reproduce
Steps to reproduce the behavior:

  1. git clone https://github.com/1hive/aragon
  2. npm install
  3. npm start

Error message

> node scripts/start


aragonUI assets copied to public/aragon-ui
Server running at http://localhost:3000 
🚨  /home/sem/Projects/ac/src/index.js: Duplicate plugin/preset detected.
If you'd like to use two separate instances of a plugin,
they need separate names, e.g.

  plugins: [
    ['some-plugin', {}],
    ['some-plugin', {}, 'some unique name'],
  ]

Duplicates detected are:
[
  {
    "alias": "/home/sem/Projects/ac/node_modules/@babel/plugin-proposal-class-properties/lib/index.js",
    "dirname": "/home/sem/Projects/ac",
    "ownPass": false,
    "file": {
      "request": "@babel/plugin-proposal-class-properties",
      "resolved": "/home/sem/Projects/ac/node_modules/@babel/plugin-proposal-class-properties/lib/index.js"
    }
  },
  {
    "alias": "base$2",
    "options": {
      "loose": "#__internal__@babel/preset-env__prefer-false-but-true-is-ok-if-it-prevents-an-error"
    },
    "dirname": "/home/sem/Projects/ac",
    "ownPass": false
  }
]
If you'd like to use two separate instances of a plugin,
they need separate names, e.g.

  plugins: [
    ['some-plugin', {}],
    ['some-plugin', {}, 'some unique name'],
  ]

Duplicates detected are:
[
  {
    "alias": "/home/sem/Projects/ac/node_modules/@babel/plugin-proposal-class-properties/lib/index.js",
    "dirname": "/home/sem/Projects/ac",
    "ownPass": false,
    "file": {
      "request": "@babel/plugin-proposal-class-properties",
      "resolved": "/home/sem/Projects/ac/node_modules/@babel/plugin-proposal-class-properties/lib/index.js"
    }
  },
  {
    "alias": "base$2",
    "options": {
      "loose": "#__internal__@babel/preset-env__prefer-false-but-true-is-ok-if-it-prevents-an-error"
    },
    "dirname": "/home/sem/Projects/ac",
    "ownPass": false
  }
]
    at assertNoDuplicates (/home/sem/Projects/ac/node_modules/@babel/core/lib/config/config-descriptors.js:206:13)
    at createDescriptors (/home/sem/Projects/ac/node_modules/@babel/core/lib/config/config-descriptors.js:114:3)
    at createPluginDescriptors (/home/sem/Projects/ac/node_modules/@babel/core/lib/config/config-descriptors.js:105:10)
    at alias (/home/sem/Projects/ac/node_modules/@babel/core/lib/config/config-descriptors.js:63:53)
    at cachedFunction (/home/sem/Projects/ac/node_modules/@babel/core/lib/config/caching.js:62:27)
    at cachedFunction.next (<anonymous>)
    at evaluateSync (/home/sem/Projects/ac/node_modules/gensync/index.js:251:28)
    at sync (/home/sem/Projects/ac/node_modules/gensync/index.js:89:14)
    at plugins.plugins (/home/sem/Projects/ac/node_modules/@babel/core/lib/config/config-descriptors.js:28:77)
    at mergeChainOpts (/home/sem/Projects/ac/node_modules/@babel/core/lib/config/config-chain.js:415:26)

Desktop (please complete the following information):

  • OS version: Ubuntu
  • Node version: v10.23.0

Additional context

I think it has to do with an update of the babel dependency. I have seen the same error before, here.

@sembrestels sembrestels added the bug Something isn't working label Jan 25, 2021
@Bitcoinera Bitcoinera linked a pull request Feb 2, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant