Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPM run dev not working at [email protected] and apollo-redux example #9601

Closed
Mehran91z opened this issue Dec 3, 2019 · 3 comments
Closed

Comments

@Mehran91z
Copy link

NPM run dev throws an error

Example name

with-apollo-and-redux

Describe the bug

According to this example repo, after using npx and npm install, cant run npm run dev and it throws this error:
[ error ] ./node_modules/next/dist/client/dev/amp-dev.js Error: [BABEL] ...\with-apollo-and-redux-app\node_modules\next\dist\client\dev\amp-dev.js: Cannot find module './src/data'

Require stack: ...\with-apollo-and-redux-app\node_modules\core-js-compat\helpers.js
...\with-apollo-and-redux-app\node_modules\core-js-compat\get-modules-list-for-target-version.js
...\with-apollo-and-redux-app\node_modules\@babel\preset-env\lib\polyfills\corejs3\usage-plugin.js
...\with-apollo-and-redux-app\node_modules\@babel\preset-env\lib\index.js
...\with-apollo-and-redux-app\node_modules\next\dist\build\babel\preset.js
...\with-apollo-and-redux-app\node_modules\next\dist\build\webpack\loaders\next-babel-loader.js
...\with-apollo-and-redux-app\node_modules\loader-runner\lib\loadLoader.js
...\with-apollo-and-redux-app\node_modules\loader-runner\lib\LoaderRunner.js
...\with-apollo-and-redux-app\node_modules\webpack\lib\NormalModule.js
...\with-apollo-and-redux-app\node_modules\webpack\lib\NormalModuleFactory.js
...\with-apollo-and-redux-app\node_modules\webpack\lib\Compiler.js
...\with-apollo-and-redux-app\node_modules\webpack\lib\webpack.js
...\with-apollo-and-redux-app\node_modules\next\dist\server\hot-reloader.js
...\with-apollo-and-redux-app\node_modules\next\dist\server\next-dev-server.js
...\with-apollo-and-redux-app\node_modules\next\dist\server\next.js
...\with-apollo-and-redux-app\node_modules\next\dist\server\lib\start-server.js
...\with-apollo-and-redux-app\node_modules\next\dist\cli\next-dev.js
...\with-apollo-and-redux-app\node_modules\next\dist\bin\next

But in [email protected] there is no issue and its working well.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Run npx create-next-app --example with-apollo-and-redux with-apollo-and-redux-app
  2. Run cd with-apollo-and-redux-app
  3. Run npm install
  4. Run npm run dev
  5. The error shown in command prompt

Expected behavior

npm dev running on http://localhost:3000 ....

System information

  • OS: Windows 10
  • Version of Next.js: 9.1.4
@Timer
Copy link
Member

Timer commented Dec 3, 2019

Duplicate of #9590. Please try again as the core-js publish has been fixed.
zloirock/core-js#710

@Timer Timer closed this as completed Dec 3, 2019
@shubhzade
Copy link

thanx bro

@balazsorban44
Copy link
Member

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@vercel vercel locked as resolved and limited conversation to collaborators Jan 28, 2022
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

4 participants