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

Error on running polymer build: only one instance of babel-polyfill is allowed #2158

Closed
doctor-g opened this issue Jun 16, 2016 · 1 comment

Comments

@doctor-g
Copy link

Description

When running polymer build, the following stack trace is produced:

error:   Uncaught exception: Error: only one instance of babel-polyfill is allowed
error:   Error: only one instance of babel-polyfill is allowed
    at Object.<anonymous> (/usr/lib/node_modules/polymer-cli/node_modules/babel-polyfill/lib/index.js:12:9)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/usr/lib/node_modules/polymer-cli/node_modules/hydrolysis/index.js:12:1)
    at Module._compile (module.js:541:32)

This happens with a vanilla app generated from polymer init as well as with my own app based on the shell.

Versions & Environment

  • Polymer CLI: 0.11.1
  • node: 6.2.1
  • Operating System: Linux Mint 17 (64-bit)

Steps to Reproduce

  1. polymer init (choose application, use defaults)
  2. polymer build

Expected Results

Expected it to build the application rather than throwing an error.

Actual Results

Error thrown, with stack trace as shown above.

Notes

The symptoms are similar to those referenced in #33.

@doctor-g
Copy link
Author

I was able to resolve this issue by switching to node 4.4.5, uninstalling polymer-cli, and reinstalling polymer-cli.

@aomarks aomarks transferred this issue from Polymer/polymer-cli Jan 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants