du5rte / react-skroll

Reactive Scrolling
MIT License
40 stars 10 forks source link

Could not find module in path: 'core-js/fn/object/entries.js' relative to '/node_modules/react-skroll/lib/index.js' #19

Open lasverg opened 5 years ago

lasverg commented 5 years ago

Hi this lib not working with create-react-app

ModuleNotFoundError Could not find module in path: 'core-js/fn/object/entries.js' relative to '/node_modules/react-skroll/lib/index.js'

throwing following error evaluate /src/index.js:3 1 | import React from "react"; 2 | import ReactDOM from "react-dom";

3 | import { Scroller } from 'react-skroll'

for ref here is codesandbox link: https://codesandbox.io/s/cool-rubin-otw88

IrynaMakaruk commented 5 years ago

I have the same issue

jpsant commented 4 years ago

Same issue here!

dspray95 commented 4 years ago

If anybody else is running into this issue, it seems to be related to the core-js version. Not sure how to fully resolve it, but running npm i --save core-js@2 has been working for me so far.

Ryojikn commented 3 years ago

Solution to this error, without downgrading core js is the following:

Change the line 32 from react-skroll/lib/index.js from:

require("core-js/fn/object/entries.js");

to:

require("core-js/stable/object/entries.js");