You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
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
locked as resolved and limited conversation to collaborators
Jan 28, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
NPM run dev throws an error
Example name
with-apollo-and-redux
Describe the bug
According to this example repo, after using
npx
andnpm install
, cant runnpm 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:
npx create-next-app --example with-apollo-and-redux with-apollo-and-redux-app
cd with-apollo-and-redux-app
npm install
npm run dev
Expected behavior
npm dev running on http://localhost:3000 ....
System information
The text was updated successfully, but these errors were encountered: