HewlettPackard / HewlettPackard/javascript-ilorest-library

BUG: When using the library's restClient class. I got Error: only one instance of babel-polyfill is allowed

Open
#5 2 comments 0 reactions 1 assignee Claimed by @injan0913 View on GitHub
Dominant language
JavaScript
Stars
16
Forks
7
PR merge metrics
No merged PRs in 30d

Description

```
Error: only one instance of babel-polyfill is allowed
at Object. (/Users/jwang209/Projects/PDE/nodejs/ilorest-poc/node_modules/babel-polyfill/lib/index.js:10:9)
at Module._compile (internal/modules/cjs/loader.js:738:30)
at Module._compile (/Users/jwang209/Projects/PDE/nodejs/ilorest-poc/node_modules/pirates/lib/index.js:99:24)
at Module._extensions..js (internal/modules/cjs/loader.js:749:10)
at Object.newLoader [as .js] (/Users/jwang209/Projects/PDE/nodejs/ilorest-poc/node_modules/pirates/lib/index.js:104:7)
at Module.load (internal/modules/cjs/loader.js:630:32)
at tryModuleLoad (internal/modules/cjs/loader.js:570:12)
at Function.Module._load (internal/modules/cjs/loader.js:562:3)
at Module.require (internal/modules/cjs/loader.js:667:17)
at require (internal/modules/cjs/helpers.js:20:18)
```
If I comment out the line here https://github.com/HewlettPackard/javascript-ilorest-library/blob/master/lib/index.js#L20

then the issue goes away.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.