-
-
Notifications
You must be signed in to change notification settings - Fork 461
Command failed with exit code 1: node_modules/.bin/next build #2481
Comments
same error |
Getting this same error as well on AWS Amplify too |
Getting the same error after upgrading to Webpack 5 manually from Webpack 4 (this was in preparation for an upgrade from Next 11 to Next 12). It's a Next.js codebase, but as soon as Webpack was upgraded, Serverless stopped working, so I don't think it's Next that is the issue |
Yep I get this error. There is no However, it looks as if another file was causing the issue so I was able to build. |
@davidrhoderick yeah I don't have a What was the problem with the other file, out of interest? |
@dana-ciocan it was a very stupid mistake I made: I had a middleware file that it complained about so I just renamed the file to It's just annoying that this command failed because of |
@davidrhoderick thanks for the tip - I had a look at the error displayed after the Agree that it's misleading having that warning display first |
I have made a few frontend changes to the project and was trying to deploy my code as usual using the npx serverless command but it fails with the following error. My node version: v14.17.0 and npm version: 6.14.6
13s » ireadifyweb » Error: Command failed with exit code 1: node_modules/.bin/next build
warn - Invalid next.config.js options detected:
See more info here: https://nextjs.org/docs/messages/invalid-next-config
warn - The
target
config is deprecated and will be removed in a future version.See more info here https://nextjs.org/docs/messages/deprecated-target-config
warn - No ESLint configuration detected. Run next lint to begin setup
Failed to compile.
./node_modules/@aws-amplify/graphql-transformer-interfaces/src/index.ts:2:10
Type error: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
1 | export * from './transformer-context';
The text was updated successfully, but these errors were encountered: