gabergg / react-scrollable-anchor

Smooth scrolling anchors bound to URL hash
MIT License
290 stars 90 forks source link

babel-preset-es2015-rollup #27

Open piaaaac opened 7 years ago

piaaaac commented 7 years ago

I got this error while compiling:

Module build failed: Error: Couldn't find preset "es2015-rollup" relative to directory "/Users/piaaaac/code/dd-mag/node_modules/jump.js"

Adding babel-preset-es2015-rollup led to successful compiling but now I'm getting:

Uncaught ReferenceError: babelHelpers is not defined  
    at jump.min.js:7  
    at Object.defineProperty.value (jump.min.js:7)  
    at __webpack_require__ (bootstrap 910dd27f6e55ce09ccba:54)  
    at Object.defineProperty.value (Manager.js:9)  
    at __webpack_require__ (bootstrap 910dd27f6e55ce09ccba:54)  
    at Object.<anonymous> (ScrollableAnchor.js:21)  
    at __webpack_require__ (bootstrap 910dd27f6e55ce09ccba:54)  
    at Object.defineProperty.value (index.js:23)  
    at __webpack_require__ (bootstrap 910dd27f6e55ce09ccba:54)  
    at Object.<anonymous> (helpers.js:78)

Could anyone help me out? thx

vladhd93 commented 7 years ago

+1, i'm also have the same error

jorisw commented 6 years ago

As the error states, it's the jump.js package that wrongfully includes a .babelrc. Remove ./node_modules/jump.js/.babelrc and the app will compile, though you probably don't want to manually tamper with node_modules.