I just follow the step from offical website:
step 1.
npm install --save next react react-dom
step 2. Add a script to package.json
{
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start"
}
}
step 3. Add ./pages/index.js inside project:
export default () => <div>Welcome to next.js!</div>
Then I ran npm run dev and got the error:
/Users/jh/Documents/worksapce/react/nextJs/test1/node_modules/webpackbar/dist/index.js:55
const hasRunning = () => Object.values(sharedState).find(s => s.isRunning);
^
TypeError: Object.values is not a function
Where am I doing wrong?