Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

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 this issue Jun 15, 2019 · 4 comments

Comments

@lasverg
Copy link

lasverg commented Jun 15, 2019

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
Copy link

I have the same issue

@jpsant
Copy link

jpsant commented Nov 11, 2019

Same issue here!

@dspray95
Copy link

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
Copy link

Ryojikn commented Feb 17, 2021

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");

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants