Closed estyh closed 3 years ago
Hi @estyh :wave:, thanks for raising. I'm going to transfer to the Amplify Console repo to get some more eyes on it.
Any updates? I got the same issue.
I got also the same issue. I want to deploy multiple apps via amplify console so I can have one backend and multiple frontends.
I've just hit this problem too. Is there any way to inspect the SSR process to see what the error is?
I am also facing same issue please suggest the solution
I've raised this on the Nx repo too to try to get some traction on this. For the moment, I'm having to restart my project using Lerna instead of Nx, which I'm really sad about 😢 .
Hey @siegerts any updates?
Hi all, we've recently made improvements to our SSR error logging and have added support for Next.js 10/11. Please follow this guide to upgrade to our latest support of Next.js: https://docs.aws.amazon.com/amplify/latest/userguide/server-side-rendering-amplify.html#update-app-nextjs-version
I'm also facing the same issue
Attempted to run an interactive setup in non TTY environment.
If that's intentended enforce with SLS_INTERACTIVE_SETUP_ENABLE=1 environment variable
Any update on this?
Same issue as well. Not using Nx, just using a standard next.js app inside of a monorepo.
I'm getting this same error for a Next 11 build in a yarn 1 workspaces monorepo
@tamagokun @j3lev @zeroonea @Schubidu can you please share sample repos if possible? we are struggling to repro the problem.
@swaminator I don't get the same error, but I also cannot seem to figure out to get this to be an SSR app. It doesn't seem to be doing the SSR build in the build output when I deploy.
https://github.com/tamagokun/next-amplify-monorepo-test
UPDATE: I got this to work. It seems like the trick is to get Amplify to detect the correct framework. If it doesn't detect it as Next.js - SSR
the first time you set it up, you're hosed and you need to delete the amplify project and start over. I'm not sure how I got it to detect the correct framework, it may have had something to do with including amplify.yml in the repo. Once I did that Amplify correctly set up the Cloudfront distribution and Lambda Edge function, and it worked great.
Detecting next.js SSR:
{"build": "next build", "start": "next start"}
"dependencies": {"next": "^11.0.0"}
UPDATE 2:
Another gotcha i've noticed is that the directory where you end up after the build step MUST be the root of the next.js workspace (NOT the root of the repo)
For example:
build:
- cd ../; yarn something
- cd packages/app; yarn build
// ^ we are in the correct directory after this step
Thanks for @tamagokun comment. According to https://docs.aws.amazon.com/amplify/latest/userguide/server-side-rendering-amplify.html#deploy-nextjs-app, we detect your app as a SSR app by inspecting your package.json
file in your monorepo app root folder. Here is a sample package.json
file:
{
"version": "0.1.0",
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
},
"dependencies": {
"next": "^11.0.0"
}
}
You can add package.json
file and create a new app. It will be automatically detect as a SSR app during creation.
For folks who are using Nx framework
, assume you have a monorepo app in apps/reactapp
You can build by following build settings:
version: 1
applications:
- frontend:
phases:
build:
commands:
# This step will build app with Nx framework
- cd ../../
- npm install
- npm run build:prod
# This step will build/update SSR resources(S3, Cloudfront, Lambda@Edge)
- cd apps/reactapp
- npm install
artifacts:
baseDirectory: ../../dist/apps/reactapp/.next
files:
- '**/*'
cache:
paths:
- node_modules/**/*
appRoot: apps/reactapp
Feel free to reopen or comment if you have other questions
@victorccccc Thanks for checking into this. I will test this out. I would like to point out that the documentation you linked to is not clear about the inspected package.json being in the monorepo root and that it's not intuitive on its own - I would recommend updating the docs.
hi @estyh , thanks for your feedback, we will update the docs.
or maybe better yet, allow the user to select the framework when creating the app. Detection is great for figuring out the "default", but not having a way to pick what one makes situations like this painful
@victorccccc I updated my sample-repo (link in issue description) with the sample code in your comment. When I had the scripts only in the monorepo root package.json - amplify did NOT pick up the SSR app. Then I tried again, adding a package.json to the react app root, and now it works. It deploys as ssr app. I'm not sure that the second npm install command in the amplify.yml is necessary, but I left it in for good measure. Thanks!
I've been looking at this post for hours now and I keep running into issues. I'm using monorepo setup with NX. I have a few questions.
@victorccccc Why did you add the second step to go back into cd apps/reactapp and run npm install? I don't think it matters right? The only thing you need for SSR is the pkg JSON to make sure it uses SSR.
Regarding the build process, why not run npm install -g nx
and then run npm install followed by nx build reactapp
? This seems to work until it gets to running it, at that point, it has a serverless error. If you do npm run build
that still works but it runs the first app.
version: 1
applications:
- frontend:
phases:
build:
commands:
# This step will build app with Nx framework
- pwd
- cd ../../
- pwd
- nvm install v16
- echo "//registry.npmjs.org/:_authToken={NPM_TOKEN} > .npmrc
- npm install -g nx
- yarn install
- nx build fox
# This step will build/update SSR resources(S3, Cloudfront, Lambda@Edge)
# - cd apps/fox
# - yarn install
artifacts:
baseDirectory: ../../dist/apps/fox/.next
files:
- '**/*'
cache:
paths:
- node_modules/**/*
appRoot: apps/fox
2021-11-05T22:56:56.650Z [INFO]: Starting SSR Build...
2021-11-05T22:58:36.315Z [ERROR]: Error: Command failed with exit code 1: node_modules/.bin/next build
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 - You have enabled experimental feature(s).
warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use them at your own risk.
warn - Disabled SWC as replacement for Babel because of custom Babel configuration ".babelrc" https://nextjs.org/docs/messages/swc-disabled
(node:2080) [DEP_WEBPACK_MODULE_ISSUER] DeprecationWarning: Module.issuer: Use new ModuleGraph API
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:2080) [DEP_WEBPACK_CHUNK_HAS_ENTRY_MODULE] DeprecationWarning: Chunk.hasEntryModule: Use new ChunkGraph API
<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Resolving 'has-flag/package.json' in /codebuild/output/src657621091/src/fox/node_modules/duplicate-package-checker-webpack-plugin/lib for build dependencies doesn't lead to expected result '/codebuild/output/src657621091/src/fox/node_modules/has-flag/package.json', but to '/codebuild/output/src657621091/src/fox/node_modules/duplicate-package-checker-webpack-plugin/node_modules/has-flag/package.json' instead. Resolving dependencies are ignored for this path.
<w> at unknown 4 has-flag/package.json
<w> at file dependencies /codebuild/output/src657621091/src/fox/node_modules/duplicate-package-checker-webpack-plugin/lib/index.js
<w> at file /codebuild/output/src657621091/src/fox/node_modules/duplicate-package-checker-webpack-plugin/lib/index.js
<w> at file dependencies /codebuild/output/src657621091/src/fox/apps/news/next.config.original.1636153072273.js
<w> at file /codebuild/output/src657621091/src/fox/apps/news/next.config.original.1636153072273.js
<w> at file dependencies /codebuild/output/src657621091/src/fox/apps/news/next.config.js
<w> at file /codebuild/output/src657621091/src/fox/apps/news/next.config.js
<w> at resolve commonjs /codebuild/output/src657621091/src/fox/apps/news/next.config.js
<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Resolving 'supports-color/package.json' in /codebuild/output/src657621091/src/fox/node_modules/duplicate-package-checker-webpack-plugin/lib for build dependencies doesn't lead to expected result '/codebuild/output/src657621091/src/fox/node_modules/supports-color/package.json', but to '/codebuild/output/src657621091/src/fox/node_modules/duplicate-package-checker-webpack-plugin/node_modules/supports-color/package.json' instead. Resolving dependencies are ignored for this path.
<w> at unknown 4 supports-color/package.json
<w> at file dependencies /codebuild/output/src657621091/src/fox/node_modules/duplicate-package-checker-webpack-plugin/lib/index.js
<w> at file /codebuild/output/src657621091/src/fox/node_modules/duplicate-package-checker-webpack-plugin/lib/index.js
<w> at file dependencies /codebuild/output/src657621091/src/fox/apps/news/next.config.original.1636153072273.js
<w> at file /codebuild/output/src657621091/src/fox/apps/news/next.config.original.1636153072273.js
<w> at file dependencies /codebuild/output/src657621091/src/fox/apps/news/next.config.js
<w> at file /codebuild/output/src657621091/src/fox/apps/news/next.config.js
<w> at resolve commonjs /codebuild/output/src657621091/src/fox/apps/news/next.config.js
Failed to compile.
./node_modules/@next/swc-linux-x64-gnu/README.md
Module parse failed: Unexpected character ' ' (1:1)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
> # `@next/swc-linux-x64-gnu`
|
| This is the **x86_64-unknown-linux-gnu** binary for `@next/swc`
Import trace for requested module:
./node_modules/@next/ sync ^\.\/swc\-.*$
./node_modules/next/dist/build/swc/index.js
./node_modules/next/dist/build/webpack/plugins/terser-webpack-plugin/src/index.js
./node_modules/next/dist/build/webpack-config.js
./node_modules/next/dist/server/dev/hot-reloader.js
./node_modules/next/dist/server/dev/next-dev-server.js
./node_modules/next/dist/server/next.js
../../node_modules/@sentry/nextjs/dist/utils/instrumentServer.js
../../node_modules/@sentry/nextjs/dist/index.server.js
./pages/_error.tsx
./node_modules/next/dist/build/webpack/loaders/next--loader/index.js?page=%2F404&absolutePagePath=private-next-pages%2F404.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&absoluteErrorPath=private-next-pages%2F_error.tsx&absolute404Path=private-next-pages%2F404.tsx&distDir=private-dot-next&buildId=SezCGm8t0TQ3g3WbKNQbr&assetPrefix=&generateEtags=true&poweredByHeader=true&canonicalBase=&basePath=&runtimeConfig=&previewProps=%7B%22previewModeId%22%3A%22ba8f4a19e326f55c512926a779da3bc6%22%2C%22previewModeSigningKey%22%3A%22dd87bd8e8120332067b70e039db3f8f62961fd5c6a1508727add017552da47de%22%2C%22previewModeEncryptionKey%22%3A%22972d14a7d72724e8a484ce38f4375c801d94dac928e6404aa60ecbf4c35780e5%22%7D&loadedEnvFiles=W3sicGF0aCI6Ii5lbnYubG9jYWwiLCJjb250ZW50cyI6IkVOVl9MT0NBTF9WQVJJQUJMRT1cInNlcnZlcl9vbmx5X3ZhcmlhYmxlX2Zyb21fZW52X2xvY2FsXCJcbk5FWFRfUFVCTElDX0VOVl9MT0NBTF9WQVJJQUJMRT1cInB1YmxpY192YXJpYWJsZV9mcm9tX2Vudl9sb2NhbFwiIn0seyJwYXRoIjoiLmVudi5wcm9kdWN0aW9uIiwiY29udGVudHMiOiIgIFxuIyBETyBOT1QgQUREIFNFQ1JFVFMgVE8gVEhJUyBGSUxFLiBUaGlzIGlzIGEgZ29vZCBwbGFjZSBmb3IgZGVmYXVsdHMuXG4jIElmIHlvdSB3YW50IHRvIGFkZCBzZWNyZXRzIHVzZSBgLmVudi5wcm9kdWN0aW9uLmxvY2FsYCBpbnN0ZWFkLlxuXG5QUk9EVUNUSU9OX0VOVl9WQVJJQUJMRT1cInNlcnZlcl9vbmx5X3Byb2R1Y3Rpb25fdmFyaWFibGVcIlxuTkVYVF9QVUJMSUNfUFJPRFVDVElPTl9FTlZfVkFSSUFCTEU9XCJwdWJsaWNfcHJvZHVjdGlvbl92YXJpYWJsZVwiXG4ifSx7InBhdGgiOiIuZW52IiwiY29udGVudHMiOiJcbiMgRE8gTk9UIEFERCBTRUNSRVRTIFRPIFRISVMgRklMRS4gVGhpcyBpcyBhIGdvb2QgcGxhY2UgZm9yIGRlZmF1bHRzLlxuIyBJZiB5b3Ugd2FudCB0byBhZGQgc2VjcmV0cyB1c2UgYC5lbnYubG9jYWxgIGluc3RlYWQuXG5cbkVOVl9WQVJJQUJMRT1cInNlcnZlcl9vbmx5X3ZhcmlhYmxlXCJcbk5FWFRfUFVCTElDX0VOVl9WQVJJQUJMRT1cInB1YmxpY192YXJpYWJsZVwiXG5ORVhUX1BVQkxJQ19HTUFQU19BUEk9XCJBSXphU3lBSDZtLWRuYkpfNmdzN1ZKbndfZUdhNllnQWJGaXFfYVFcIlxuTkVYVF9QVUJMSUNfR01BUFNfREVWX0FQST1cIkFJemFTeUFOMFRZbWtqMkZIakhiMkxNbzZxX1Q0OVR3NjVBVnB1RVwiXG5ORVhUX1BVQkxJQ19USU5ZTUNFX0FQST1cInpzN3JwbzZjMmdoaDdoMjM3MjFyZHM4Nm94cDZkYmxuNW9uYXB3b3lxbGFpdTF4blwiXG5ORVhUX1BVQkxJQ19XT1JEUFJFU1NfR1JBUEhRTD1cImh0dHA6Ly81Mi4zNy4xNDguMTE2L2dyYXBocWxcIiJ9XQ%3D%3D&i18n=!
./node_modules/@next/swc-linux-x64-gnu/next-swc.linux-x64-gnu.node
Module parse failed: Unexpected character '' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
(Source code omitted for this binary file)
Import trace for requested module:
./node_modules/@next/ sync ^\.\/swc\-.*$
./node_modules/next/dist/build/swc/index.js
./node_modules/next/dist/build/webpack/plugins/terser-webpack-plugin/src/index.js
./node_modules/next/dist/build/webpack-config.js
./node_modules/next/dist/server/dev/hot-reloader.js
./node_modules/next/dist/server/dev/next-dev-server.js
./node_modules/next/dist/server/next.js
../../node_modules/@sentry/nextjs/dist/utils/instrumentServer.js
../../node_modules/@sentry/nextjs/dist/index.server.js
./pages/_error.tsx
./node_modules/next/dist/build/webpack/loaders/next--loader/index.js?page=%2F404&absolutePagePath=private-next-pages%2F404.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&absoluteErrorPath=private-next-pages%2F_error.tsx&absolute404Path=private-next-pages%2F404.tsx&distDir=private-dot-next&buildId=SezCGm8t0TQ3g3WbKNQbr&assetPrefix=&generateEtags=true&poweredByHeader=true&canonicalBase=&basePath=&runtimeConfig=&previewProps=%7B%22previewModeId%22%3A%22ba8f4a19e326f55c512926a779da3bc6%22%2C%22previewModeSigningKey%22%3A%22dd87bd8e8120332067b70e039db3f8f62961fd5c6a1508727add017552da47de%22%2C%22previewModeEncryptionKey%22%3A%22972d14a7d72724e8a484ce38f4375c801d94dac928e6404aa60ecbf4c35780e5%22%7D&loadedEnvFiles=W3sicGF0aCI6Ii5lbnYubG9jYWwiLCJjb250ZW50cyI6IkVOVl9MT0NBTF9WQVJJQUJMRT1cInNlcnZlcl9vbmx5X3ZhcmlhYmxlX2Zyb21fZW52X2xvY2FsXCJcbk5FWFRfUFVCTElDX0VOVl9MT0NBTF9WQVJJQUJMRT1cInB1YmxpY192YXJpYWJsZV9mcm9tX2Vudl9sb2NhbFwiIn0seyJwYXRoIjoiLmVudi5wcm9kdWN0aW9uIiwiY29udGVudHMiOiIgIFxuIyBETyBOT1QgQUREIFNFQ1JFVFMgVE8gVEhJUyBGSUxFLiBUaGlzIGlzIGEgZ29vZCBwbGFjZSBmb3IgZGVmYXVsdHMuXG4jIElmIHlvdSB3YW50IHRvIGFkZCBzZWNyZXRzIHVzZSBgLmVudi5wcm9kdWN0aW9uLmxvY2FsYCBpbnN0ZWFkLlxuXG5QUk9EVUNUSU9OX0VOVl9WQVJJQUJMRT1cInNlcnZlcl9vbmx5X3Byb2R1Y3Rpb25fdmFyaWFibGVcIlxuTkVYVF9QVUJMSUNfUFJPRFVDVElPTl9FTlZfVkFSSUFCTEU9XCJwdWJsaWNfcHJvZHVjdGlvbl92YXJpYWJsZVwiXG4ifSx7InBhdGgiOiIuZW52IiwiY29udGVudHMiOiJcbiMgRE8gTk9UIEFERCBTRUNSRVRTIFRPIFRISVMgRklMRS4gVGhpcyBpcyBhIGdvb2QgcGxhY2UgZm9yIGRlZmF1bHRzLlxuIyBJZiB5b3Ugd2FudCB0byBhZGQgc2VjcmV0cyB1c2UgYC5lbnYubG9jYWxgIGluc3RlYWQuXG5cbkVOVl9WQVJJQUJMRT1cInNlcnZlcl9vbmx5X3ZhcmlhYmxlXCJcbk5FWFRfUFVCTElDX0VOVl9WQVJJQUJMRT1cInB1YmxpY192YXJpYWJsZVwiXG5ORVhUX1BVQkxJQ19HTUFQU19BUEk9XCJBSXphU3lBSDZtLWRuYkpfNmdzN1ZKbndfZUdhNllnQWJGaXFfYVFcIlxuTkVYVF9QVUJMSUNfR01BUFNfREVWX0FQST1cIkFJemFTeUFOMFRZbWtqMkZIakhiMkxNbzZxX1Q0OVR3NjVBVnB1RVwiXG5ORVhUX1BVQkxJQ19USU5ZTUNFX0FQST1cInpzN3JwbzZjMmdoaDdoMjM3MjFyZHM4Nm94cDZkYmxuNW9uYXB3b3lxbGFpdTF4blwiXG5ORVhUX1BVQkxJQ19XT1JEUFJFU1NfR1JBUEhRTD1cImh0dHA6Ly81Mi4zNy4xNDguMTE2L2dyYXBocWxcIiJ9XQ%3D%3D&i18n=!
./node_modules/@next/swc-linux-x64-musl/README.md
Module parse failed: Unexpected character ' ' (1:1)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
> # `@next/swc-linux-x64-musl`
|
| This is the **linux-x64-musl** binary for `@next/swc`
Import trace for requested module:
./node_modules/@next/ sync ^\.\/swc\-.*$
./node_modules/next/dist/build/swc/index.js
./node_modules/next/dist/build/webpack/plugins/terser-webpack-plugin/src/index.js
./node_modules/next/dist/build/webpack-config.js
./node_modules/next/dist/server/dev/hot-reloader.js
./node_modules/next/dist/server/dev/next-dev-server.js
./node_modules/next/dist/server/next.js
../../node_modules/@sentry/nextjs/dist/utils/instrumentServer.js
../../node_modules/@sentry/nextjs/dist/index.server.js
./pages/_error.tsx
./node_modules/next/dist/build/webpack/loaders/next--loader/index.js?page=%2F404&absolutePagePath=private-next-pages%2F404.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&absoluteErrorPath=private-next-pages%2F_error.tsx&absolute404Path=private-next-pages%2F404.tsx&distDir=private-dot-next&buildId=SezCGm8t0TQ3g3WbKNQbr&assetPrefix=&generateEtags=true&poweredByHeader=true&canonicalBase=&basePath=&runtimeConfig=&previewProps=%7B%22previewModeId%22%3A%22ba8f4a19e326f55c512926a779da3bc6%22%2C%22previewModeSigningKey%22%3A%22dd87bd8e8120332067b70e039db3f8f62961fd5c6a1508727add017552da47de%22%2C%22previewModeEncryptionKey%22%3A%22972d14a7d72724e8a484ce38f4375c801d94dac928e6404aa60ecbf4c35780e5%22%7D&loadedEnvFiles=W3sicGF0aCI6Ii5lbnYubG9jYWwiLCJjb250ZW50cyI6IkVOVl9MT0NBTF9WQVJJQUJMRT1cInNlcnZlcl9vbmx5X3ZhcmlhYmxlX2Zyb21fZW52X2xvY2FsXCJcbk5FWFRfUFVCTElDX0VOVl9MT0NBTF9WQVJJQUJMRT1cInB1YmxpY192YXJpYWJsZV9mcm9tX2Vudl9sb2NhbFwiIn0seyJwYXRoIjoiLmVudi5wcm9kdWN0aW9uIiwiY29udGVudHMiOiIgIFxuIyBETyBOT1QgQUREIFNFQ1JFVFMgVE8gVEhJUyBGSUxFLiBUaGlzIGlzIGEgZ29vZCBwbGFjZSBmb3IgZGVmYXVsdHMuXG4jIElmIHlvdSB3YW50IHRvIGFkZCBzZWNyZXRzIHVzZSBgLmVudi5wcm9kdWN0aW9uLmxvY2FsYCBpbnN0ZWFkLlxuXG5QUk9EVUNUSU9OX0VOVl9WQVJJQUJMRT1cInNlcnZlcl9vbmx5X3Byb2R1Y3Rpb25fdmFyaWFibGVcIlxuTkVYVF9QVUJMSUNfUFJPRFVDVElPTl9FTlZfVkFSSUFCTEU9XCJwdWJsaWNfcHJvZHVjdGlvbl92YXJpYWJsZVwiXG4ifSx7InBhdGgiOiIuZW52IiwiY29udGVudHMiOiJcbiMgRE8gTk9UIEFERCBTRUNSRVRTIFRPIFRISVMgRklMRS4gVGhpcyBpcyBhIGdvb2QgcGxhY2UgZm9yIGRlZmF1bHRzLlxuIyBJZiB5b3Ugd2FudCB0byBhZGQgc2VjcmV0cyB1c2UgYC5lbnYubG9jYWxgIGluc3RlYWQuXG5cbkVOVl9WQVJJQUJMRT1cInNlcnZlcl9vbmx5X3ZhcmlhYmxlXCJcbk5FWFRfUFVCTElDX0VOVl9WQVJJQUJMRT1cInB1YmxpY192YXJpYWJsZVwiXG5ORVhUX1BVQkxJQ19HTUFQU19BUEk9XCJBSXphU3lBSDZtLWRuYkpfNmdzN1ZKbndfZUdhNllnQWJGaXFfYVFcIlxuTkVYVF9QVUJMSUNfR01BUFNfREVWX0FQST1cIkFJemFTeUFOMFRZbWtqMkZIakhiMkxNbzZxX1Q0OVR3NjVBVnB1RVwiXG5ORVhUX1BVQkxJQ19USU5ZTUNFX0FQST1cInpzN3JwbzZjMmdoaDdoMjM3MjFyZHM4Nm94cDZkYmxuNW9uYXB3b3lxbGFpdTF4blwiXG5ORVhUX1BVQkxJQ19XT1JEUFJFU1NfR1JBUEhRTD1cImh0dHA6Ly81Mi4zNy4xNDguMTE2L2dyYXBocWxcIiJ9XQ%3D%3D&i18n=!
./node_modules/@next/swc-linux-x64-musl/next-swc.linux-x64-musl.node
Module parse failed: Unexpected character '' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
(Source code omitted for this binary file)
Import trace for requested module:
./node_modules/@next/ sync ^\.\/swc\-.*$
./node_modules/next/dist/build/swc/index.js
./node_modules/next/dist/build/webpack/plugins/terser-webpack-plugin/src/index.js
./node_modules/next/dist/build/webpack-config.js
./node_modules/next/dist/server/dev/hot-reloader.js
./node_modules/next/dist/server/dev/next-dev-server.js
./node_modules/next/dist/server/next.js
../../node_modules/@sentry/nextjs/dist/utils/instrumentServer.js
../../node_modules/@sentry/nextjs/dist/index.server.js
./pages/_error.tsx
./node_modules/next/dist/build/webpack/loaders/next--loader/index.js?page=%2F404&absolutePagePath=private-next-pages%2F404.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&absoluteErrorPath=private-next-pages%2F_error.tsx&absolute404Path=private-next-pages%2F404.tsx&distDir=private-dot-next&buildId=SezCGm8t0TQ3g3WbKNQbr&assetPrefix=&generateEtags=true&poweredByHeader=true&canonicalBase=&basePath=&runtimeConfig=&previewProps=%7B%22previewModeId%22%3A%22ba8f4a19e326f55c512926a779da3bc6%22%2C%22previewModeSigningKey%22%3A%22dd87bd8e8120332067b70e039db3f8f62961fd5c6a1508727add017552da47de%22%2C%22previewModeEncryptionKey%22%3A%22972d14a7d72724e8a484ce38f4375c801d94dac928e6404aa60ecbf4c35780e5%22%7D&loadedEnvFiles=W3sicGF0aCI6Ii5lbnYubG9jYWwiLCJjb250ZW50cyI6IkVOVl9MT0NBTF9WQVJJQUJMRT1cInNlcnZlcl9vbmx5X3ZhcmlhYmxlX2Zyb21fZW52X2xvY2FsXCJcbk5FWFRfUFVCTElDX0VOVl9MT0NBTF9WQVJJQUJMRT1cInB1YmxpY192YXJpYWJsZV9mcm9tX2Vudl9sb2NhbFwiIn0seyJwYXRoIjoiLmVudi5wcm9kdWN0aW9uIiwiY29udGVudHMiOiIgIFxuIyBETyBOT1QgQUREIFNFQ1JFVFMgVE8gVEhJUyBGSUxFLiBUaGlzIGlzIGEgZ29vZCBwbGFjZSBmb3IgZGVmYXVsdHMuXG4jIElmIHlvdSB3YW50IHRvIGFkZCBzZWNyZXRzIHVzZSBgLmVudi5wcm9kdWN0aW9uLmxvY2FsYCBpbnN0ZWFkLlxuXG5QUk9EVUNUSU9OX0VOVl9WQVJJQUJMRT1cInNlcnZlcl9vbmx5X3Byb2R1Y3Rpb25fdmFyaWFibGVcIlxuTkVYVF9QVUJMSUNfUFJPRFVDVElPTl9FTlZfVkFSSUFCTEU9XCJwdWJsaWNfcHJvZHVjdGlvbl92YXJpYWJsZVwiXG4ifSx7InBhdGgiOiIuZW52IiwiY29udGVudHMiOiJcbiMgRE8gTk9UIEFERCBTRUNSRVRTIFRPIFRISVMgRklMRS4gVGhpcyBpcyBhIGdvb2QgcGxhY2UgZm9yIGRlZmF1bHRzLlxuIyBJZiB5b3Ugd2FudCB0byBhZGQgc2VjcmV0cyB1c2UgYC5lbnYubG9jYWxgIGluc3RlYWQuXG5cbkVOVl9WQVJJQUJMRT1cInNlcnZlcl9vbmx5X3ZhcmlhYmxlXCJcbk5FWFRfUFVCTElDX0VOVl9WQVJJQUJMRT1cInB1YmxpY192YXJpYWJsZVwiXG5ORVhUX1BVQkxJQ19HTUFQU19BUEk9XCJBSXphU3lBSDZtLWRuYkpfNmdzN1ZKbndfZUdhNllnQWJGaXFfYVFcIlxuTkVYVF9QVUJMSUNfR01BUFNfREVWX0FQST1cIkFJemFTeUFOMFRZbWtqMkZIakhiMkxNbzZxX1Q0OVR3NjVBVnB1RVwiXG5ORVhUX1BVQkxJQ19USU5ZTUNFX0FQST1cInpzN3JwbzZjMmdoaDdoMjM3MjFyZHM4Nm94cDZkYmxuNW9uYXB3b3lxbGFpdTF4blwiXG5ORVhUX1BVQkxJQ19XT1JEUFJFU1NfR1JBUEhRTD1cImh0dHA6Ly81Mi4zNy4xNDguMTE2L2dyYXBocWxcIiJ9XQ%3D%3D&i18n=!
./node_modules/next/dist/compiled/@vercel/nft/LICENSE
Module parse failed: Unexpected token (1:10)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
> Copyright 2019 Vercel, Inc.
|
| Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
Import trace for requested module:
./node_modules/next/dist/compiled/@vercel/nft/ sync ^\.\/.*$
./node_modules/next/dist/compiled/@vercel/nft/index.js
./node_modules/next/dist/build/webpack/plugins/next-trace-entrypoints-plugin.js
./node_modules/next/dist/build/webpack-config.js
./node_modules/next/dist/server/dev/hot-reloader.js
./node_modules/next/dist/server/dev/next-dev-server.js
./node_modules/next/dist/server/next.js
../../node_modules/@sentry/nextjs/dist/utils/instrumentServer.js
../../node_modules/@sentry/nextjs/dist/index.server.js
./pages/_error.tsx
./node_modules/next/dist/build/webpack/loaders/next--loader/index.js?page=%2F404&absolutePagePath=private-next-pages%2F404.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&absoluteErrorPath=private-next-pages%2F_error.tsx&absolute404Path=private-next-pages%2F404.tsx&distDir=private-dot-next&buildId=SezCGm8t0TQ3g3WbKNQbr&assetPrefix=&generateEtags=true&poweredByHeader=true&canonicalBase=&basePath=&runtimeConfig=&previewProps=%7B%22previewModeId%22%3A%22ba8f4a19e326f55c512926a779da3bc6%22%2C%22previewModeSigningKey%22%3A%22dd87bd8e8120332067b70e039db3f8f62961fd5c6a1508727add017552da47de%22%2C%22previewModeEncryptionKey%22%3A%22972d14a7d72724e8a484ce38f4375c801d94dac928e6404aa60ecbf4c35780e5%22%7D&loadedEnvFiles=W3sicGF0aCI6Ii5lbnYubG9jYWwiLCJjb250ZW50cyI6IkVOVl9MT0NBTF9WQVJJQUJMRT1cInNlcnZlcl9vbmx5X3ZhcmlhYmxlX2Zyb21fZW52X2xvY2FsXCJcbk5FWFRfUFVCTElDX0VOVl9MT0NBTF9WQVJJQUJMRT1cInB1YmxpY192YXJpYWJsZV9mcm9tX2Vudl9sb2NhbFwiIn0seyJwYXRoIjoiLmVudi5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A6Ly81Mi4zNy4xNDguMTE2L2dyYXBocWxcIiJ9XQ%3D%3D&i18n=!
> webpack config.resolve.alias was incorrectly overridden. https://nextjs.org/docs/messages/invalid-resolve-alias
info - Loaded env from /codebuild/output/src657621091/src/fox/apps/news/.env.local
info - Loaded env from /codebuild/output/src657621091/src/fox/apps/news/.env.production
info - Loaded env from /codebuild/output/src657621091/src/fox/apps/news/.env
warn - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
Attention: Next.js now collects completely anonymous telemetry regarding usage.
This information is used to shape Next.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry
info - Checking validity of types...
error - ESLint version 8.1.0 is not yet supported. Please downgrade to version 7 for the meantime: yarn remove eslint && yarn add --dev eslint@"<8.0.0"
info - Creating an optimized production build...
info - Using external babel configuration from /codebuild/output/src657621091/src/fox/apps/news/.babelrc
at makeError (/root/.//node_modules/execa/lib/error.js:60:11)
at handlePromise (/root/.//node_modules/execa/index.js:118:26)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async Builder.build (/root/.//node_modules/@sls-next/lambda-at-edge/dist/build.js:376:13) {
shortMessage: 'Command failed with exit code 1: node_modules/.bin/next build',
command: 'node_modules/.bin/next build',
escapedCommand: '"node_modules/.bin/next" build',
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: 'info - Loaded env from /codebuild/output/src657621091/src/fox/apps/news/.env.local\n' +
'info - Loaded env from /codebuild/output/src657621091/src/fox/apps/news/.env.production\n' +
'info - Loaded env from /codebuild/output/src657621091/src/fox/apps/news/.env\n' +
'warn - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache\n' +
'Attention: Next.js now collects completely anonymous telemetry regarding usage.\n' +
"This information is used to shape Next.js' roadmap and prioritize features.\n" +
"You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:\n" +
'https://nextjs.org/telemetry\n' +
'\n' +
'info - Checking validity of types...\n' +
'error - ESLint version 8.1.0 is not yet supported. Please downgrade to version 7 for the meantime: yarn remove eslint && yarn add --dev eslint@"<8.0.0"\n' +
'info - Creating an optimized production build...\n' +
'info - Using external babel configuration from /codebuild/output/src657621091/src/fox/apps/news/.babelrc',
stderr: 'warn - The `target` config is deprecated and will be removed in a future version.\n' +
'See more info here https://nextjs.org/docs/messages/deprecated-target-config\n' +
'warn - You have enabled experimental feature(s).\n' +
'warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use them at your own risk.\n' +
'\n' +
'warn - Disabled SWC as replacement for Babel because of custom Babel configuration ".babelrc" https://nextjs.org/docs/messages/swc-disabled\n' +
'(node:2080) [DEP_WEBPACK_MODULE_ISSUER] DeprecationWarning: Module.issuer: Use new ModuleGraph API\n' +
'(Use `node --trace-deprecation ...` to show where the warning was created)\n' +
'(node:2080) [DEP_WEBPACK_CHUNK_HAS_ENTRY_MODULE] DeprecationWarning: Chunk.hasEntryModule: Use new ChunkGraph API\n' +
"<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Resolving 'has-flag/package.json' in /codebuild/output/src657621091/src/fox/node_modules/duplicate-package-checker-webpack-plugin/lib for build dependencies doesn't lead to expected result '/codebuild/output/src657621091/src/fox/node_modules/has-flag/package.json', but to '/codebuild/output/src657621091/src/fox/node_modules/duplicate-package-checker-webpack-plugin/node_modules/has-flag/package.json' instead. Resolving dependencies are ignored for this path.\n" +
'<w> at unknown 4 has-flag/package.json\n' +
'<w> at file dependencies /codebuild/output/src657621091/src/fox/node_modules/duplicate-package-checker-webpack-plugin/lib/index.js\n' +
'<w> at file /codebuild/output/src657621091/src/fox/node_modules/duplicate-package-checker-webpack-plugin/lib/index.js\n' +
'<w> at file dependencies /codebuild/output/src657621091/src/fox/apps/news/next.config.original.1636153072273.js\n' +
'<w> at file /codebuild/output/src657621091/src/fox/apps/news/next.config.original.1636153072273.js\n' +
'<w> at file dependencies /codebuild/output/src657621091/src/fox/apps/news/next.config.js\n' +
'<w> at file /codebuild/output/src657621091/src/fox/apps/news/next.config.js\n' +
'<w> at resolve commonjs /codebuild/output/src657621091/src/fox/apps/news/next.config.js\n' +
"<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Resolving 'supports-color/package.json' in /codebuild/output/src657621091/src/fox/node_modules/duplicate-package-checker-webpack-plugin/lib for build dependencies doesn't lead to expected result '/codebuild/output/src657621091/src/fox/node_modules/supports-color/package.json', but to '/codebuild/output/src657621091/src/fox/node_modules/duplicate-package-checker-webpack-plugin/node_modules/supports-color/package.json' instead. Resolving dependencies are ignored for this path.\n" +
'<w> at unknown 4 supports-color/package.json\n' +
'<w> at file dependencies /codebuild/output/src657621091/src/fox/node_modules/duplicate-package-checker-webpack-plugin/lib/index.js\n' +
'<w> at file /codebuild/output/src657621091/src/fox/node_modules/duplicate-package-checker-webpack-plugin/lib/index.js\n' +
'<w> at file dependencies /codebuild/output/src657621091/src/fox/apps/news/next.config.original.1636153072273.js\n' +
'<w> at file /codebuild/output/src657621091/src/fox/apps/news/next.config.original.1636153072273.js\n' +
'<w> at file dependencies /codebuild/output/src657621091/src/fox/apps/news/next.config.js\n' +
'<w> at file /codebuild/output/src657621091/src/fox/apps/news/next.config.js\n' +
'<w> at resolve commonjs /codebuild/output/src657621091/src/fox/apps/news/next.config.js\n' +
'Failed to compile.\n' +
'\n' +
'./node_modules/@next/swc-linux-x64-gnu/README.md\n' +
"Module parse failed: Unexpected character ' ' (1:1)\n" +
'You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders\n' +
'> # `@next/swc-linux-x64-gnu`\n' +
'| \n' +
'| This is the **x86_64-unknown-linux-gnu** binary for `@next/swc`\n' +
'\n' +
'Import trace for requested module:\n' +
'./node_modules/@next/ sync ^\\.\\/swc\\-.*$\n' +
'./node_modules/next/dist/build/swc/index.js\n' +
'./node_modules/next/dist/build/webpack/plugins/terser-webpack-plugin/src/index.js\n' +
'./node_modules/next/dist/build/webpack-config.js\n' +
'./node_modules/next/dist/server/dev/hot-reloader.js\n' +
'./node_modules/next/dist/server/dev/next-dev-server.js\n' +
'./node_modules/next/dist/server/next.js\n' +
'../../node_modules/@sentry/nextjs/dist/utils/instrumentServer.js\n' +
'../../node_modules/@sentry/nextjs/dist/index.server.js\n' +
'./pages/_error.tsx\n' +
'./node_modules/next/dist/build/webpack/loaders/next--loader/index.js?page=%2F404&absolutePagePath=private-next-pages%2F404.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&absoluteErrorPath=private-next-pages%2F_error.tsx&absolute404Path=private-next-pages%2F404.tsx&distDir=private-dot-next&buildId=SezCGm8t0TQ3g3WbKNQbr&assetPrefix=&generateEtags=true&poweredByHeader=true&canonicalBase=&basePath=&runtimeConfig=&previewProps=%7B%22previewModeId%22%3A%22ba8f4a19e326f55c512926a779da3bc6%22%2C%22previewModeSigningKey%22%3A%22dd87bd8e8120332067b70e039db3f8f62961fd5c6a1508727add017552da47de%22%2C%22previewModeEncryptionKey%22%3A%22972d14a7d72724e8a484ce38f4375c801d94dac928e6404aa60ecbf4c35780e5%22%7D&loadedEnvFiles=W3sicGF0aCI6Ii5lbnYubG9jYWwiLCJjb250ZW50cyI6IkVOVl9MT0NBTF9WQVJJQUJMRT1cInNlcnZlcl9vbmx5X3ZhcmlhYmxlX2Zyb21fZW52X2xvY2FsXCJcbk5FWFRfUFVCTElDX0VOVl9MT0NBTF9WQVJJQUJMRT1cInB1YmxpY192YXJpYWJsZV9mcm9tX2Vudl9sb2NhbFwiIn0seyJwYXRoIjoiLmVudi5wcm9kdWN0aW9uIiwiY29udGVudHMiOiIgIFxuIyBETyBOT1QgQUREIFNFQ1JFVFMgVE8gVEhJUyBGSUxFLiBUaGlzIGlzIGEgZ29vZCBwbGFjZSBmb3IgZGVmYXVsdHMuXG4jIElmIHlvdSB3YW50IHRvIGFkZCBzZWNyZXRzIHVzZSBgLmVudi5wcm9kdWN0aW9uLmxvY2FsYCBpbnN0ZWFkLlxuXG5QUk9EVUNUSU9OX0VOVl9WQVJJQUJMRT1cInNlcnZlcl9vbmx5X3Byb2R1Y3Rpb25fdmFyaWFibGVcIlxuTkVYVF9QVUJMSUNfUFJPRFVDVElPTl9FTlZfVkFSSUFCTEU9XCJwdWJsaWNfcHJvZHVjdGlvbl92YXJpYWJsZVwiXG4ifSx7InBhdGgiOiIuZW52IiwiY29udGVudHMiOiJcbiMgRE8gTk9UIEFERCBTRUNSRVRTIFRPIFRISVMgRklMRS4gVGhpcyBpcyBhIGdvb2QgcGxhY2UgZm9yIGRlZmF1bHRzLlxuIyBJZiB5b3Ugd2FudCB0byBhZGQgc2VjcmV0cyB1c2UgYC5lbnYubG9jYWxgIGluc3RlYWQuXG5cbkVOVl9WQVJJQUJMRT1cInNlcnZlcl9vbmx5X3ZhcmlhYmxlXCJcbk5FWFRfUFVCTElDX0VOVl9WQVJJQUJMRT1cInB1YmxpY192YXJpYWJsZVwiXG5ORVhUX1BVQkxJQ19HTUFQU19BUEk9XCJBSXphU3lBSDZtLWRuYkpfNmdzN1ZKbndfZUdhNllnQWJGaXFfYVFcIlxuTkVYVF9QVUJMSUNfR01BUFNfREVWX0FQST1cIkFJemFTeUFOMFRZbWtqMkZIakhiMkxNbzZxX1Q0OVR3NjVBVnB1RVwiXG5ORVhUX1BVQkxJQ19USU5ZTUNFX0FQST1cInpzN3JwbzZjMmdoaDdoMjM3MjFyZHM4Nm94cDZkYmxuNW9uYXB3b3lxbGFpdTF4blwiXG5ORVhUX1BVQkxJQ19XT1JEUFJFU1NfR1JBUEhRTD1cImh0dHA6Ly81Mi4zNy4xNDguMTE2L2dyYXBocWxcIiJ9XQ%3D%3D&i18n=!\n' +
'\n' +
'./node_modules/@next/swc-linux-x64-gnu/next-swc.linux-x64-gnu.node\n' +
"Module parse failed: Unexpected character '\x7F' (1:0)\n" +
'You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders\n' +
'(Source code omitted for this binary file)\n' +
'\n' +
'Import trace for requested module:\n' +
'./node_modules/@next/ sync ^\\.\\/swc\\-.*$\n' +
'./node_modules/next/dist/build/swc/index.js\n' +
'./node_modules/next/dist/build/webpack/plugins/terser-webpack-plugin/src/index.js\n' +
'./node_modules/next/dist/build/webpack-config.js\n' +
'./node_modules/next/dist/server/dev/hot-reloader.js\n' +
'./node_modules/next/dist/server/dev/next-dev-server.js\n' +
'./node_modules/next/dist/server/next.js\n' +
'../../node_modules/@sentry/nextjs/dist/utils/instrumentServer.js\n' +
'../../node_modules/@sentry/nextjs/dist/index.server.js\n' +
'./pages/_error.tsx\n' +
'./node_modules/next/dist/build/webpack/loaders/next--loader/index.js?page=%2F404&absolutePagePath=private-next-pages%2F404.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&absoluteErrorPath=private-next-pages%2F_error.tsx&absolute404Path=private-next-pages%2F404.tsx&distDir=private-dot-next&buildId=SezCGm8t0TQ3g3WbKNQbr&assetPrefix=&generateEtags=true&poweredByHeader=true&canonicalBase=&basePath=&runtimeConfig=&previewProps=%7B%22previewModeId%22%3A%22ba8f4a19e326f55c512926a779da3bc6%22%2C%22previewModeSigningKey%22%3A%22dd87bd8e8120332067b70e039db3f8f62961fd5c6a1508727add017552da47de%22%2C%22previewModeEncryptionKey%22%3A%22972d14a7d72724e8a484ce38f4375c801d94dac928e6404aa60ecbf4c35780e5%22%7D&loadedEnvFiles=W3sicGF0aCI6Ii5lbnYubG9jYWwiLCJjb250ZW50cyI6IkVOVl9MT0NBTF9WQVJJQUJMRT1cInNlcnZlcl9vbmx5X3ZhcmlhYmxlX2Zyb21fZW52X2xvY2FsXCJcbk5FWFRfUFVCTElDX0VOVl9MT0NBTF9WQVJJQUJMRT1cInB1YmxpY192YXJpYWJsZV9mcm9tX2Vudl9sb2NhbFwiIn0seyJwYXRoIjoiLmVudi5wcm9kdWN0a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zNy4xNDguMTE2L2dyYXBocWxcIiJ9XQ%3D%3D&i18n=!\n' +
'\n' +
'./node_modules/@next/swc-linux-x64-musl/README.md\n' +
"Module parse failed: Unexpected character ' ' (1:1)\n" +
'You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders\n' +
'> # `@next/swc-linux-x64-musl`\n' +
'| \n' +
'| This is the **linux-x64-musl** binary for `@next/swc`\n' +
'\n' +
'Import trace for requested module:\n' +
'./node_modules/@next/ sync ^\\.\\/swc\\-.*$\n' +
'./node_modules/next/dist/build/swc/index.js\n' +
'./node_modules/next/dist/build/webpack/plugins/terser-webpack-plugin/src/index.js\n' +
'./node_modules/next/dist/build/webpack-config.js\n' +
'./node_modules/next/dist/server/dev/hot-reloader.js\n' +
'./node_modules/next/dist/server/dev/next-dev-server.js\n' +
'./node_modules/next/dist/server/next.js\n' +
'../../node_modules/@sentry/nextjs/dist/utils/instrumentServer.js\n' +
'../../node_modules/@sentry/nextjs/dist/index.server.js\n' +
'./pages/_error.tsx\n' +
'./node_modules/next/dist/build/webpack/loaders/next--loader/index.js?page=%2F404&absolutePagePath=private-next-pages%2F404.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&absoluteErrorPath=private-next-pages%2F_error.tsx&absolute404Path=private-next-pages%2F404.tsx&distDir=private-dot-next&buildId=SezCGm8t0TQ3g3WbKNQbr&assetPrefix=&generateEtags=true&poweredByHeader=true&canonicalBase=&basePath=&runtimeConfig=&previewProps=%7B%22previewModeId%22%3A%22ba8f4a19e326f55c512926a779da3bc6%22%2C%22previewModeSigningKey%22%3A%22dd87bd8e8120332067b70e039db3f8f62961fd5c6a1508727add017552da47de%22%2C%22previewModeEncryptionKey%22%3A%22972d14a7d72724e8a484ce38f4375c801d94dac928e6404aa60ecbf4c35780e5%22%7D&loadedEnvFiles=W3sicGF0aCI6Ii5lbnYubG9jYWwiLCJjb250ZW50cyI6IkVOVl9MT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bzZxX1Q0OVR3NjVBVnB1RVwiXG5ORVhUX1BVQkxJQ19USU5ZTUNFX0FQST1cInpzN3JwbzZjMmdoaDdoMjM3MjFyZHM4Nm94cDZkYmxuNW9uYXB3b3lxbGFpdTF4blwiXG5ORVhUX1BVQkxJQ19XT1JEUFJFU1NfR1JBUEhRTD1cImh0dHA6Ly81Mi4zNy4xNDguMTE2L2dyYXBocWxcIiJ9XQ%3D%3D&i18n=!\n' +
'\n' +
'./node_modules/@next/swc-linux-x64-musl/next-swc.linux-x64-musl.node\n' +
"Module parse failed: Unexpected character '\x7F' (1:0)\n" +
'You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders\n' +
'(Source code omitted for this binary file)\n' +
'\n' +
'Import trace for requested module:\n' +
'./node_modules/@next/ sync ^\\.\\/swc\\-.*$\n' +
'./node_modules/next/dist/build/swc/index.js\n' +
'./node_modules/next/dist/build/webpack/plugins/terser-webpack-plugin/src/index.js\n' +
'./node_modules/next/dist/build/webpack-config.js\n' +
'./node_modules/next/dist/server/dev/hot-reloader.js\n' +
'./node_modules/next/dist/server/dev/next-dev-server.js\n' +
'./node_modules/next/dist/server/next.js\n' +
'../../node_modules/@sentry/nextjs/dist/utils/instrumentServer.js\n' +
'../../node_modules/@sentry/nextjs/dist/index.server.js\n' +
'./pages/_error.tsx\n' +
'./node_modules/next/dist/build/webpack/loaders/next--loader/index.js?page=%2F404&absolutePagePath=private-next-pages%2F404.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&absoluteErrorPath=private-next-pages%2F_error.tsx&absolute404Path=private-next-pages%2F404.tsx&distDir=private-dot-next&buildId=SezCGm8t0TQ3g3WbKNQbr&assetPrefix=&generateEtags=true&poweredByHeader=true&canonicalBase=&basePath=&runtimeConfig=&previewProps=%7B%22previewModeId%22%3A%22ba8f4a19e326f55c512926a779da3bc6%22%2C%22previewModeSigningKey%22%3A%22dd87bd8e8120332067b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sZVwiXG5ORVhUX1BVQkxJQ19HTUFQU19BUEk9XCJBSXphU3lBSDZtLWRuYkpfNmdzN1ZKbndfZUdhNllnQWJGaXFfYVFcIlxuTkVYVF9QVUJMSUNfR01BUFNfREVWX0FQST1cIkFJemFTeUFOMFRZbWtqMkZIakhiMkxNbzZxX1Q0OVR3NjVBVnB1RVwiXG5ORVhUX1BVQkxJQ19USU5ZTUNFX0FQST1cInpzN3JwbzZjMmdoaDdoMjM3MjFyZHM4Nm94cDZkYmxuNW9uYXB3b3lxbGFpdTF4blwiXG5ORVhUX1BVQkxJQ19XT1JEUFJFU1NfR1JBUEhRTD1cImh0dHA6Ly81Mi4zNy4xNDguMTE2L2dyYXBocWxcIiJ9XQ%3D%3D&i18n=!\n' +
'\n' +
'./node_modules/next/dist/compiled/@vercel/nft/LICENSE\n' +
'Module parse failed: Unexpected token (1:10)\n' +
'You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders\n' +
'> Copyright 2019 Vercel, Inc.\n' +
'| \n' +
'| Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n' +
'\n' +
'Import trace for requested module:\n' +
'./node_modules/next/dist/compiled/@vercel/nft/ sync ^\\.\\/.*$\n' +
'./node_modules/next/dist/compiled/@vercel/nft/index.js\n' +
'./node_modules/next/dist/build/webpack/plugins/next-trace-entrypoints-plugin.js\n' +
'./node_modules/next/dist/build/webpack-config.js\n' +
'./node_modules/next/dist/server/dev/hot-reloader.js\n' +
'./node_modules/next/dist/server/dev/next-dev-server.js\n' +
'./node_modules/next/dist/server/next.js\n' +
'../../node_modules/@sentry/nextjs/dist/utils/instrumentServer.js\n' +
'../../node_modules/@sentry/nextjs/dist/index.server.js\n' +
'./pages/_error.tsx\n' +
'./node_modules/next/dist/build/webpack/loaders/next--loader/index.js?page=%2F404&absolutePagePath=private-next-pages%2F404.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&absoluteErrorPath=private-next-pages%2F_error.tsx&absolute404Path=private-next-pages%2F404.tsx&distDir=private-dot-next&buildId=SezCGm8t0TQ3g3WbKNQbr&assetPrefix=&generateEtags=true&poweredByHeader=true&canonicalBase=&basePath=&runtimeConfig=&previewProps=%7B%22previewModeId%22%3A%22ba8f4a19e326f55c512926a779da3bc6%22%2C%22previewModeSigningKey%22%3A%22dd87bd8e8120332067b70e039db3f8f62961fd5c6a1508727add017552da47de%22%2C%22previewModeEncryptionKey%22%3A%22972d14a7d72724e8a484ce38f4375c801d94dac928e6404aa60ecbf4c35780e5%22%7D&loadedEnvFiles=W3sicGF0aCI6Ii5lbnYubG9jYWwiLCJjb250ZW50cyI6IkVOVl9MT0NBTF9WQVJJQUJMRT1cInNlcnZlcl9vbmx5X3ZhcmlhYmxlX2Zyb21fZW52X2xvY2FsXCJcbk5FWFRfUFVCTElDX0VOVl9MT0NBTF9WQVJJQUJMRT1cInB1YmxpY192YXJpYWJsZV9mcm9tX2Vudl9sb2NhbFwiIn0seyJwYXRoIjoiLmVudi5wcm9kdWN0aW9uIiwiY29udGVudHMiOiIgIFxuIyBETyBOT1QgQUREIFNFQ1JFVFMgVE8gVEhJUyBGSUxFLiBUaGlzIGlzIGEgZ29vZCBwbGFjZSBmb3IgZGVmYXVsdHMuXG4jIElmIHlvdSB3YW50IHRvIGFkZCBzZWNyZXRzIHVzZSBgLmVudi5wcm9kdWN0aW9uLmxvY2FsYCBpbnN0ZWFkLlxuXG5QUk9EVUNUSU9OX0VOVl9WQVJJQUJMRT1cInNlcnZlcl9vbmx5X3Byb2R1Y3Rpb25fdmFyaWFibGVcIlxuTkVYVF9QVUJMSUNfUFJPRFVDVElPTl9FTlZfVkFSSUFCTEU9XCJwdWJsaWNfcHJvZHVjdGlvbl92YXJpYWJsZVwiXG4ifSx7InBhdGgiOiIuZW52IiwiY29udGVudHMiOiJcbiMgRE8gTk9UIEFERCBTRUNSRVRTIFRPIFRISVMgRklMRS4gVGhpcyBpcyBhIGdvb2QgcGxhY2UgZm9yIGRlZmF1bHRzLlxuIyBJZiB5b3Ugd2FudCB0byBhZGQgc2VjcmV0cyB1c2UgYC5lbnYubG9jYWxgIGluc3RlYWQuXG5cbkVOVl9WQVJJQUJMRT1cInNlcnZlcl9vbmx5X3ZhcmlhYmxlXCJcbk5FWFRfUFVCTElDX0VOVl9WQVJJQUJMRT1cInB1YmxpY192YXJpYWJsZVwiXG5ORVhUX1BVQkxJQ19HTUFQU19BUEk9XCJBSXphU3lBSDZtLWRuYkpfNmdzN1ZKbndfZUdhNllnQWJGaXFfYVFcIlxuTkVYVF9QVUJMSUNfR01BUFNfREVWX0FQST1cIkFJemFTeUFOMFRZbWtqMkZIakhiMkxNbzZxX1Q0OVR3NjVBVnB1RVwiXG5ORVhUX1BVQkxJQ19USU5ZTUNFX0FQST1cInpzN3JwbzZjMmdoaDdoMjM3MjFyZHM4Nm94cDZkYmxuNW9uYXB3b3lxbGFpdTF4blwiXG5ORVhUX1BVQkxJQ19XT1JEUFJFU1NfR1JBUEhRTD1cImh0dHA6Ly81Mi4zNy4xNDguMTE2L2dyYXBocWxcIiJ9XQ%3D%3D&i18n=!\n' +
'\n' +
'\n' +
'> webpack config.resolve.alias was incorrectly overridden. https://nextjs.org/docs/messages/invalid-resolve-alias',
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}
2021-11-05T22:58:36.319Z [ERROR]: [G[?25h[G[J
74s › d1qgwpip26q5k8 › Error: Command failed with exit code 1: node_modules/.bin/next build
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 - You have enabled experimental feature(s).
warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use them at your own risk.
warn - Disabled SWC as replacement for Babel because of custom Babel configuration ".babelrc" https://nextjs.org/docs/messages/swc-disabled
(node:2080) [DEP_WEBPACK_MODULE_ISSUER] DeprecationWarning: Module.issuer: Use new ModuleGraph API
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:2080) [DEP_WEBPACK_CHUNK_HAS_ENTRY_MODULE] DeprecationWarning: Chunk.hasEntryModule: Use new ChunkGraph API
<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Resolving 'has-flag/package.json' in /codebuild/output/src657621091/src/fox/node_modules/duplicate-package-checker-webpack-plugin/lib for build dependencies doesn't lead to expected result '/codebuild/output/src657621091/src/fox/node_modules/has-flag/package.json', but to '/codebuild/output/src657621091/src/fox/node_modules/duplicate-package-checker-webpack-plugin/node_modules/has-flag/package.json' instead. Resolving dependencies are ignored for this path.
<w> at unknown 4 has-flag/package.json
<w> at file dependencies /codebuild/output/src657621091/src/fox/node_modules/duplicate-package-checker-webpack-plugin/lib/index.js
<w> at file /codebuild/output/src657621091/src/fox/node_modules/duplicate-package-checker-webpack-plugin/lib/index.js
<w> at file dependencies /codebuild/output/src657621091/src/fox/apps/news/next.config.original.1636153072273.js
<w> at file /codebuild/output/src657621091/src/fox/apps/news/next.config.original.1636153072273.js
<w> at file dependencies /codebuild/output/src657621091/src/fox/apps/news/next.config.js
<w> at file /codebuild/output/src657621091/src/fox/apps/news/next.config.js
<w> at resolve commonjs /codebuild/output/src657621091/src/fox/apps/news/next.config.js
<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Resolving 'supports-color/package.json' in /codebuild/output/src657621091/src/fox/node_modules/duplicate-package-checker-webpack-plugin/lib for build dependencies doesn't lead to expected result '/codebuild/output/src657621091/src/fox/node_modules/supports-color/package.json', but to '/codebuild/output/src657621091/src/fox/node_modules/duplicate-package-checker-webpack-plugin/node_modules/supports-color/package.json' instead. Resolving dependencies are ignored for this path.
<w> at unknown 4 supports-color/package.json
<w> at file dependencies /codebuild/output/src657621091/src/fox/node_modules/duplicate-package-checker-webpack-plugin/lib/index.js
<w> at file /codebuild/output/src657621091/src/fox/node_modules/duplicate-package-checker-webpack-plugin/lib/index.js
<w> at file dependencies /codebuild/output/src657621091/src/fox/apps/news/next.config.original.1636153072273.js
<w> at file /codebuild/output/src657621091/src/fox/apps/news/next.config.original.1636153072273.js
<w> at file dependencies /codebuild/output/src657621091/src/fox/apps/news/next.config.js
<w> at file /codebuild/output/src657621091/src/fox/apps/news/next.config.js
<w> at resolve commonjs /codebuild/output/src657621091/src/fox/apps/news/next.config.js
Failed to compile.
./node_modules/@next/swc-linux-x64-gnu/README.md
Module parse failed: Unexpected character ' ' (1:1)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
> # `@next/swc-linux-x64-gnu`
|
| This is the **x86_64-unknown-linux-gnu** binary for `@next/swc`
Import trace for requested module:
./node_modules/@next/ sync ^\.\/swc\-.*$
./node_modules/next/dist/build/swc/index.js
./node_modules/next/dist/build/webpack/plugins/terser-webpack-plugin/src/index.js
./node_modules/next/dist/build/webpack-config.js
./node_modules/next/dist/server/dev/hot-reloader.js
./node_modules/next/dist/server/dev/next-dev-server.js
./node_modules/next/dist/server/next.js
../../node_modules/@sentry/nextjs/dist/utils/instrumentServer.js
../../node_modules/@sentry/nextjs/dist/index.server.js
./pages/_error.tsx
./node_modules/next/dist/build/webpack/loaders/next--loader/index.js?page=%2F404&absolutePagePath=private-next-pages%2F404.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&absoluteErrorPath=private-next-pages%2F_error.tsx&absolute404Path=private-next-pages%2F404.tsx&distDir=private-dot-next&buildId=SezCGm8t0TQ3g3WbKNQbr&assetPrefix=&generateEtags=true&poweredByHeader=true&canonicalBase=&basePath=&runtimeConfig=&previewProps=%7B%22previewModeId%22%3A%22ba8f4a19e326f55c512926a779da3bc6%22%2C%22previewModeSigningKey%22%3A%22dd87bd8e8120332067b70e039db3f8f62961fd5c6a1508727add017552da47de%22%2C%22previewModeEncryptionKey%22%3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SDZtLWRuYkpfNmdzN1ZKbndfZUdhNllnQWJGaXFfYVFcIlxuTkVYVF9QVUJMSUNfR01BUFNfREVWX0FQST1cIkFJemFTeUFOMFRZbWtqMkZIakhiMkxNbzZxX1Q0OVR3NjVBVnB1RVwiXG5ORVhUX1BVQkxJQ19USU5ZTUNFX0FQST1cInpzN3JwbzZjMmdoaDdoMjM3MjFyZHM4Nm94cDZkYmxuNW9uYXB3b3lxbGFpdTF4blwiXG5ORVhUX1BVQkxJQ19XT1JEUFJFU1NfR1JBUEhRTD1cImh0dHA6Ly81Mi4zNy4xNDguMTE2L2dyYXBocWxcIiJ9XQ%3D%3D&i18n=!
./node_modules/@next/swc-linux-x64-gnu/next-swc.linux-x64-gnu.node
Module parse failed: Unexpected character '' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
(Source code omitted for this binary file)
Import trace for requested module:
./node_modules/@next/ sync ^\.\/swc\-.*$
./node_modules/next/dist/build/swc/index.js
./node_modules/next/dist/build/webpack/plugins/terser-webpack-plugin/src/index.js
./node_modules/next/dist/build/webpack-config.js
./node_modules/next/dist/server/dev/hot-reloader.js
./node_modules/next/dist/server/dev/next-dev-server.js
./node_modules/next/dist/server/next.js
../../node_modules/@sentry/nextjs/dist/utils/instrumentServer.js
../../node_modules/@sentry/nextjs/dist/index.server.js
./pages/_error.tsx
./node_modules/next/dist/build/webpack/loaders/next--loader/index.js?page=%2F404&absolutePagePath=private-next-pages%2F404.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&absoluteErrorPath=private-next-pages%2F_error.tsx&absolute404Path=private-next-pages%2F404.tsx&distDir=private-dot-next&buildId=SezCGm8t0TQ3g3WbKNQbr&assetPrefix=&generateEtags=true&poweredByHeader=true&canonicalBase=&basePath=&runtimeConfig=&previewProps=%7B%22previewModeId%22%3A%22ba8f4a19e326f55c512926a779da3bc6%22%2C%22previewModeSigningKey%22%3A%22dd87bd8e8120332067b70e039db3f8f62961fd5c6a1508727add017552da47de%22%2C%22previewModeEncryptionKey%22%3A%22972d14a7d72724e8a484ce38f4375c801d94dac928e6404aa60ecbf4c35780e5%22%7D&loadedEnvFiles=W3sicGF0aCI6Ii5lbnYubG9jYWwiLCJjb250ZW50cyI6IkVOVl9MT0NBTF9WQVJJQUJMRT1cInNlcnZlcl9vbmx5X3ZhcmlhYmxlX2Zyb21fZW52X2xvY2FsXCJcbk5FWFRfUFVCTElDX0VOVl9MT0NBTF9WQVJJQUJMRT1cInB1YmxpY192YXJpYWJsZV9mcm9tX2Vudl9sb2NhbFwiIn0seyJwYXRoIjoiLmVudi5wcm9kdWN0aW9uIiwiY29udGVudHMiOiIgIFxuIyBETyBOT1QgQUREIFNFQ1JFVFMgVE8gVEhJUyBGSUxFLiBUaGlzIGlzIGEgZ29vZCBwbGFjZSBmb3IgZGVmYXVsdHMuXG4jIElmIHlvdSB3YW50IHRvIGFkZCBzZWNyZXRzIHVzZSBgLmVudi5wcm9kdWN0aW9uLmxvY2FsYCBpbnN0ZWFkLlxuXG5QUk9EVUNUSU9OX0VOVl9WQVJJQUJMRT1cInNlcnZlcl9vbmx5X3Byb2R1Y3Rpb25fdmFyaWFibGVcIlxuTkVYVF9QVUJMSUNfUFJPRFVDVElPTl9FTlZfVkFSSUFCTEU9XCJwdWJsaWNfcHJvZHVjdGlvbl92YXJpYWJsZVwiXG4ifSx7InBhdGgiOiIuZW52IiwiY29udGVudHMiOiJcbiMgRE8gTk9UIEFERCBTRUNSRVRTIFRPIFRISVMgRklMRS4gVGhpcyBpcyBhIGdvb2QgcGxhY2UgZm9yIGRlZmF1bHRzLlxuIyBJZiB5b3Ugd2FudCB0byBhZGQgc2VjcmV0cyB1c2UgYC5lbnYubG9jYWxgIGluc3RlYWQuXG5cbkVOVl9WQVJJQUJMRT1cInNlcnZlcl9vbmx5X3ZhcmlhYmxlXCJcbk5FWFRfUFVCTElDX0VOVl9WQVJJQUJMRT1cInB1YmxpY192YXJpYWJsZVwiXG5ORVhUX1BVQkxJQ19HTUFQU19BUEk9XCJBSXphU3lBSDZtLWRuYkpfNmdzN1ZKbndfZUdhNllnQWJGaXFfYVFcIlxuTkVYVF9QVUJMSUNfR01BUFNfREVWX0FQST1cIkFJemFTeUFOMFRZbWtqMkZIakhiMkxNbzZxX1Q0OVR3NjVBVnB1RVwiXG5ORVhUX1BVQkxJQ19USU5ZTUNFX0FQST1cInpzN3JwbzZjMmdoaDdoMjM3MjFyZHM4Nm94cDZkYmxuNW9uYXB3b3lxbGFpdTF4blwiXG5ORVhUX1BVQkxJQ19XT1JEUFJFU1NfR1JBUEhRTD1cImh0dHA6Ly81Mi4zNy4xNDguMTE2L2dyYXBocWxcIiJ9XQ%3D%3D&i18n=!
./node_modules/@next/swc-linux-x64-musl/README.md
Module parse failed: Unexpected character ' ' (1:1)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
> # `@next/swc-linux-x64-musl`
|
| This is the **linux-x64-musl** binary for `@next/swc`
Import trace for requested module:
./node_modules/@next/ sync ^\.\/swc\-.*$
./node_modules/next/dist/build/swc/index.js
./node_modules/next/dist/build/webpack/plugins/terser-webpack-plugin/src/index.js
./node_modules/next/dist/build/webpack-config.js
./node_modules/next/dist/server/dev/hot-reloader.js
./node_modules/next/dist/server/dev/next-dev-server.js
./node_modules/next/dist/server/next.js
../../node_modules/@sentry/nextjs/dist/utils/instrumentServer.js
../../node_modules/@sentry/nextjs/dist/index.server.js
./pages/_error.tsx
./node_modules/next/dist/build/webpack/loaders/next--loader/index.js?page=%2F404&absolutePagePath=private-next-pages%2F404.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&absoluteErrorPath=private-next-pages%2F_error.tsx&absolute404Path=private-next-pages%2F404.tsx&distDir=private-dot-next&buildId=SezCGm8t0TQ3g3WbKNQbr&assetPrefix=&generateEtags=true&poweredByHeader=true&canonicalBase=&basePath=&runtimeConfig=&previewProps=%7B%22previewModeId%22%3A%22ba8f4a19e326f55c512926a779da3bc6%22%2C%22previewModeSigningKey%22%3A%22dd87bd8e8120332067b70e039db3f8f62961fd5c6a1508727add017552da47de%22%2C%22previewModeEncryptionKey%22%3A%22972d14a7d72724e8a484ce38f4375c801d94dac928e6404aa60ecbf4c35780e5%22%7D&loadedEnvFiles=W3sicGF0aCI6Ii5lbnYubG9jYWwiLCJjb250ZW50cyI6IkVOVl9MT0NBTF9WQVJJQUJMRT1cInNlcnZlcl9vbmx5X3ZhcmlhYmxlX2Zyb21fZW52X2xvY2FsXCJcbk5FWFRfUFVCTElDX0VOVl9MT0NBTF9WQVJJQUJMRT1cInB1YmxpY192YXJpYWJsZV9mcm9tX2Vudl9sb2NhbFwiIn0seyJwYXRoIjoiLmVudi5wcm9kdWN0aW9uIiwiY29udGVudHMiOiIgIFxuIyBETyBOT1QgQUREIFNFQ1JFVFMgVE8gVEhJUyBGSUxFLiBUaGlzIGlzIGEgZ29vZCBwbGFjZSBmb3IgZGVmYXVsdHMuXG4jIElmIHlvdSB3YW50IHRvIGFkZCBzZWNyZXRzIHVzZSBgLmVudi5wcm9kdWN0aW9uLmxvY2FsYCBpbnN0ZWFkLlxuXG5QUk9EVUNUSU9OX0VOVl9WQVJJQUJMRT1cInNlcnZlcl9vbmx5X3Byb2R1Y3Rpb25fdmFyaWFibGVcIlxuTkVYVF9QVUJMSUNfUFJPRFVDVElPTl9FTlZfVkFSSUFCTEU9XCJwdWJsaWNfcHJvZHVjdGlvbl92YXJpYWJsZVwiXG4ifSx7InBhdGgiOiIuZW52IiwiY29udGVudHMiOiJcbiMgRE8gTk9UIEFERCBTRUNSRVRTIFRPIFRISVMgRklMRS4gVGhpcyBpcyBhIGdvb2QgcGxhY2UgZm9yIGRlZmF1bHRzLlxuIyBJZiB5b3Ugd2FudCB0byBhZGQgc2VjcmV0cyB1c2UgYC5lbnYubG9jYWxgIGluc3RlYWQuXG5cbkVOVl9WQVJJQUJMRT1cInNlcnZlcl9vbmx5X3ZhcmlhYmxlXCJcbk5FWFRfUFVCTElDX0VOVl9WQVJJQUJMRT1cInB1YmxpY192YXJpYWJsZVwiXG5ORVhUX1BVQkxJQ19HTUFQU19BUEk9XCJBSXphU3lBSDZtLWRuYkpfNmdzN1ZKbndfZUdhNllnQWJGaXFfYVFcIlxuTkVYVF9QVUJMSUNfR01BUFNfREVWX0FQST1cIkFJemFTeUFOMFRZbWtqMkZIakhiMkxNbzZxX1Q0OVR3NjVBVnB1RVwiXG5ORVhUX1BVQkxJQ19USU5ZTUNFX0FQST1cInpzN3JwbzZjMmdoaDdoMjM3MjFyZHM4Nm94cDZkYmxuNW9uYXB3b3lxbGFpdTF4blwiXG5ORVhUX1BVQkxJQ19XT1JEUFJFU1NfR1JBUEhRTD1cImh0dHA6Ly81Mi4zNy4xNDguMTE2L2dyYXBocWxcIiJ9XQ%3D%3D&i18n=!
./node_modules/@next/swc-linux-x64-musl/next-swc.linux-x64-musl.node
Module parse failed: Unexpected character '' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
(Source code omitted for this binary file)
Import trace for requested module:
./node_modules/@next/ sync ^\.\/swc\-.*$
./node_modules/next/dist/build/swc/index.js
./node_modules/next/dist/build/webpack/plugins/terser-webpack-plugin/src/index.js
./node_modules/next/dist/build/webpack-config.js
./node_modules/next/dist/server/dev/hot-reloader.js
./node_modules/next/dist/server/dev/next-dev-server.js
./node_modules/next/dist/server/next.js
../../node_modules/@sentry/nextjs/dist/utils/instrumentServer.js
../../node_modules/@sentry/nextjs/dist/index.server.js
./pages/_error.tsx
./node_modules/next/dist/build/webpack/loaders/next--loader/index.js?page=%2F404&absolutePagePath=private-next-pages%2F404.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&absoluteErrorPath=private-next-pages%2F_error.tsx&absolute404Path=private-next-pages%2F404.tsx&distDir=private-dot-next&buildId=SezCGm8t0TQ3g3WbKNQbr&assetPrefix=&generateEtags=true&poweredByHeader=true&canonicalBase=&basePath=&runtimeConfig=&previewProps=%7B%22previewModeId%22%3A%22ba8f4a19e326f55c512926a779da3bc6%22%2C%22previewModeSigningKey%22%3A%22dd87bd8e8120332067b70e039db3f8f62961fd5c6a1508727add017552da47de%22%2C%22previewModeEncryptionKey%22%3A%22972d14a7d72724e8a484ce38f4375c801d94dac928e6404aa60ecbf4c35780e5%22%7D&loadedEnvFiles=W3sicGF0aCI6Ii5lbnYubG9jYWwiLCJjb250ZW50cyI6IkVOVl9MT0NBTF9WQVJJQUJMRT1cInNlcnZlcl9vbmx5X3ZhcmlhYmxlX2Zyb21fZW52X2xvY2FsXCJcbk5FWFRfUFVCTElDX0VOVl9MT0NBTF9WQVJJQUJMRT1cInB1YmxpY192YXJpYWJsZV9mcm9tX2Vudl9sb2NhbFwiIn0seyJwYXRoIjoiLmVudi5wcm9kdWN0aW9uIiwiY29udGVudHMiOiIgIFxuIyBETyBOT1QgQUREIFNFQ1JFVFMgVE8gVEhJUyBGSUxFLiBUaGlzIGlzIGEgZ29vZCBwbGFjZSBmb3IgZGVmYXVsdHMuXG4jIElmIHlvdSB3YW50IHRvIGFkZCBzZWNyZXRzIHVzZSBgLmVudi5wcm9kdWN0aW9uLmxvY2FsYCBpbnN0ZWFkLlxuXG5QUk9EVUNUSU9OX0VOVl9WQVJJQUJMRT1cInNlcnZlcl9vbmx5X3Byb2R1Y3Rpb25fdmFyaWFibGVcIlxuTkVYVF9QVUJMSUNfUFJPRFVDVElPTl9FTlZfVkFSSUFCTEU9XCJwdWJsaWNfcHJvZHVjdGlvbl92YXJpYWJsZVwiXG4ifSx7InBhdGgiOiIuZW52IiwiY29udGVudHMiOiJcbiMgRE8gTk9UIEFERCBTRUNSRVRTIFRPIFRISVMgRklMRS4gVGhpcyBpcyBhIGdvb2QgcGxhY2UgZm9yIGRlZmF1bHRzLlxuIyBJZiB5b3Ugd2FudCB0byBhZGQgc2VjcmV0cyB1c2UgYC5lbnYubG9jYWxgIGluc3RlYWQuXG5cbkVOVl9WQVJJQUJMRT1cInNlcnZlcl9vbmx5X3ZhcmlhYmxlXCJcbk5FWFRfUFVCTElDX0VOVl9WQVJJQUJMRT1cInB1YmxpY192YXJpYWJsZVwiXG5ORVhUX1BVQkxJQ19HTUFQU19BUEk9XCJBSXphU3lBSDZtLWRuYkpfNmdzN1ZKbndfZUdhNllnQWJGaXFfYVFcIlxuTkVYVF9QVUJMSUNfR01BUFNfREVWX0FQST1cIkFJemFTeUFOMFRZbWtqMkZIakhiMkxNbzZxX1Q0OVR3NjVBVnB1RVwiXG5ORVhUX1BVQkxJQ19USU5ZTUNFX0FQST1cInpzN3JwbzZjMmdoaDdoMjM3MjFyZHM4Nm94cDZkYmxuNW9uYXB3b3lxbGFpdTF4blwiXG5ORVhUX1BVQkxJQ19XT1JEUFJFU1NfR1JBUEhRTD1cImh0dHA6Ly81Mi4zNy4xNDguMTE2L2dyYXBocWxcIiJ9XQ%3D%3D&i18n=!
./node_modules/next/dist/compiled/@vercel/nft/LICENSE
Module parse failed: Unexpected token (1:10)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
> Copyright 2019 Vercel, Inc.
|
| Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
Import trace for requested module:
./node_modules/next/dist/compiled/@vercel/nft/ sync ^\.\/.*$
./node_modules/next/dist/compiled/@vercel/nft/index.js
./node_modules/next/dist/build/webpack/plugins/next-trace-entrypoints-plugin.js
./node_modules/next/dist/build/webpack-config.js
./node_modules/next/dist/server/dev/hot-reloader.js
./node_modules/next/dist/server/dev/next-dev-server.js
./node_modules/next/dist/server/next.js
../../node_modules/@sentry/nextjs/dist/utils/instrumentServer.js
../../node_modules/@sentry/nextjs/dist/index.server.js
./pages/_error.tsx
./node_modules/next/dist/build/webpack/loaders/next--loader/index.js?page=%2F404&absolutePagePath=private-next-pages%2F404.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&absoluteErrorPath=private-next-pages%2F_error.tsx&absolute404Path=private-next-pages%2F404.tsx&distDir=private-dot-next&buildId=SezCGm8t0TQ3g3WbKNQbr&assetPrefix=&generateEtags=true&poweredByHeader=true&canonicalBase=&basePath=&runtimeConfig=&previewProps=%7B%22previewModeId%22%3A%22ba8f4a19e326f55c512926a779da3bc6%22%2C%22previewModeSigningKey%22%3A%22dd87bd8e8120332067b70e039db3f8f62961fd5c6a1508727add017552da47de%22%2C%22previewModeEncryptionKey%22%3A%22972d14a7d72724e8a484ce38f4375c801d94dac928e6404aa60ecbf4c35780e5%22%7D&loadedEnvFiles=W3sicGF0aCI6Ii5lbnYubG9jYWwiLCJjb250ZW50cyI6IkVOVl9MT0NBTF9WQVJJQUJMRT1cInNlcnZlcl9vbmx5X3ZhcmlhYmxlX2Zyb21fZW52X2xvY2FsXCJcbk5FWFRfUFVCTElDX0VOVl9MT0NBTF9WQVJJQUJMRT1cInB1YmxpY192YXJpYWJsZV9mcm9tX2Vudl9sb2NhbFwiIn0seyJwYXRoIjoiLmVudi5wcm9kdWN0aW9uIiwiY29udGVudHMiOiIgIFxuIyBETyBOT1QgQUREIFNFQ1JFVFMgVE8gVEhJUyBGSUxFLiBUaGlzIGlzIGEgZ29vZCBwbGFjZSBmb3IgZGVmYXVsdHMuXG4jIElmIHlvdSB3YW50IHRvIGFkZCBzZWNyZXRzIHVzZSBgLmVudi5wcm9kdWN0aW9uLmxvY2FsYCBpbnN0ZWFkLlxuXG5QUk9EVUNUSU9OX0VOVl9WQVJJQUJMRT1cInNlcnZlcl9vbmx5X3Byb2R1Y3Rpb25fdmFyaWFibGVcIlxuTkVYVF9QVUJMSUNfUFJPRFVDVElPTl9FTlZfVkFSSUFCTEU9XCJwdWJsaWNfcHJvZHVjdGlvbl92YXJpYWJsZVwiXG4ifSx7InBhdGgiOiIuZW52IiwiY29udGVudHMiOiJcbiMgRE8gTk9UIEFERCBTRUNSRVRTIFRPIFRISVMgRklMRS4gVGhpcyBpcyBhIGdvb2QgcGxhY2UgZm9yIGRlZmF1bHRzLlxuIyBJZiB5b3Ugd2FudCB0byBhZGQgc2VjcmV0cyB1c2UgYC5lbnYubG9jYWxgIGluc3RlYWQuXG5cbkVOVl9WQVJJQUJMRT1cInNlcnZlcl9vbmx5X3ZhcmlhYmxlXCJcbk5FWFRfUFVCTElDX0VOVl9WQVJJQUJMRT1cInB1YmxpY192YXJpYWJsZVwiXG5ORVhUX1BVQkxJQ19HTUFQU19BUEk9XCJBSXphU3lBSDZtLWRuYkpfNmdzN1ZKbndfZUdhNllnQWJGaXFfYVFcIlxuTkVYVF9QVUJMSUNfR01BUFNfREVWX0FQST1cIkFJemFTeUFOMFRZbWtqMkZIakhiMkxNbzZxX1Q0OVR3NjVBVnB1RVwiXG5ORVhUX1BVQkxJQ19USU5ZTUNFX0FQST1cInpzN3JwbzZjMmdoaDdoMjM3MjFyZHM4Nm94cDZkYmxuNW9uYXB3b3lxbGFpdTF4blwiXG5ORVhUX1BVQkxJQ19XT1JEUFJFU1NfR1JBUEhRTD1cImh0dHA6Ly81Mi4zNy4xNDguMTE2L2dyYXBocWxcIiJ9XQ%3D%3D&i18n=!
> webpack config.resolve.alias was incorrectly overridden. https://nextjs.org/docs/messages/invalid-resolve-alias
info - Loaded env from /codebuild/output/src657621091/src/fox/apps/news/.env.local
info - Loaded env from /codebuild/output/src657621091/src/fox/apps/news/.env.production
info - Loaded env from /codebuild/output/src657621091/src/fox/apps/news/.env
warn - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
Attention: Next.js now collects completely anonymous telemetry regarding usage.
This information is used to shape Next.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry
info - Checking validity of types...
error - ESLint version 8.1.0 is not yet supported. Please downgrade to version 7 for the meantime: yarn remove eslint && yarn add --dev eslint@"<8.0.0"
info - Creating an optimized production build...
info - Using external babel configuration from /codebuild/output/src657621091/src/fox/apps/news/.babelrc
[G[?25h
Terminating logging...
@estyh Did you end up be able to deploy the NX monorepo? I've looked at all these different threads and I'm unable to deploy it. I change the hoist settings, modify the packages and none of it works.
@Rafcin no, I also tried every possible solution and gave up after many wasted hours
@estyh I see. Yea I've been struggling to deploy it as well. Did it blow up on Error: Command failed with exit code 1: node_modules/.bin/next build
for you as well?
I've been looking at this for a bit, maybe the solution would be to change the build command in the serverless file to point to the node_moduels/.bin/next folder in root.
I don't remember the last thing it blew up on. I'm now deploying with the serverless nextjs plugin and it works perfectly.
Interesting, I took a look at that but it seems a pain to go that way. I was really hoping NX would work but it just struggles at every turn when it comes to deployment. I'm really determined to find a solution.
You can see my solution here, working great for me https://github.com/serverless-nextjs/serverless-next.js/issues/1845#issuecomment-961660098
As an aside, I started using cdk for the backend instead of amplify, much more robust, and it has support for the serverless nextjs plugin. I haven't tried it yet, but I plan to, so that I can finally get fullstack deployments.
@estyh are you able to share how you constructed your stack with NX and CDK? I started down an amplify route, but I'm increasingly thinking that CDK might be a better solution with NX. Especially as I am using CDK with the NestJS backend api already.
@senorscan
I opened a ticket with the Amplify team. They are working on implementing support for NX. The date is unknown for the time (hopefully this month).
Amplify also added the override feature so I think you'll be able to use CDK.
@Rafcin cool, I'll keep my eyes open for that.
I've raised this on the Nx repo too to try to get some traction on this. For the moment, I'm having to restart my project using Lerna instead of Nx, which I'm really sad about 😢 .
Did you manage to deploy a monorepo app using lerna on AWS Amplify host? I was trying to deploy for a while, but always returns the following error in the deploy step: "Cannot find any generated SSR resources to deploy. If you intend for your app to be SSR, please check your app Service Role permissions. Otherwise, please check out our docs on how to setup your app to be detected as SSG (https://docs.aws.amazon.com/amplify/latest/userguide/server-side-rendering-amplify.html#deploy-nextjs-app)". Did you face the same problem?
@luanbon if you moved from NX to lerna then redeploy by deleting the current hosted app and redeploy the same branches and it should work. I recommend Yarn workspaces if you plan to do it, but Lerna should work fine.
Also don't use Next 12.
@victorccccc your approach mostly works, but the build inside app/reactapp fails on shared libs components. Looks like it can't properly build dependent projects. Example error: ../../libs/common/src/lib/Access.ts Module parse failed: Unexpected token (3:7) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
@Rafcin do you know if the Amplify team successfully implemented support for Nx yet?
I don't think so. I switched to Turbo for the time being.
As far as I know, the entire build system is being overhauled, I'm guessing once that's done it should be fine.
Turborepo might be a better option for a project as well paired with PNPM it's fantastic. If you choose to deploy it on Amplify it will work fine plus it's extremely fast.
@Rafcin Sweet, I'll have to check it out. Thanks for the insight!
@nozma-knows Heck yeah! I think you'll like Turborepo, it's fun to work with, and it often just works. Plus, it's made by Jared Palmer, and his packages are solid 😎
If you do use it, check out these links as well, I attached the turbo docks, the remote cache repo that I find super useful, and then two packages that use turbo that is well built! https://turborepo.org/ https://github.com/fox1t/turborepo-remote-cache https://github.com/JeromeFitz/packages/ https://github.com/aws-amplify/amplify-ui/
If you need any help with deploying on Amplify, let me know, I've been through all the rough issues.
@Rafcin I'm trying to use turborepo with Next.js & Amplify. I encounter this error every time I try to use turborepo:
@monorepo/builder:build: λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
@monorepo/builder:build: ○ (Static) automatically rendered as static HTML (uses no initial props)
@monorepo/builder:build:
2022-07-20T11:56:42.177Z [INFO]: @monorepo/builder: build: Done in 96.29s.
2022-07-20T11:56:42.185Z [INFO]: Tasks: 1 successful, 1 total
Cached: 0 cached, 1 total
2022-07-20T11:56:42.185Z [INFO]: Time: 1m41.964s
2022-07-20T11:56:42.348Z [INFO]: Starting SSR Build...
2022-07-20T11:57:21.517Z [ERROR]: Serverless Error ----------------------------------------
Terminating logging...
Here's amplify.yml
config:
applications:
- backend:
phases:
build:
commands:
- '# Execute Amplify CLI with the helper script'
- amplifyPush --simple
frontend:
phases:
preBuild:
commands:
- yarn install
build:
commands:
- cd .. && npx turbo run build --filter=@monorepo/builder
artifacts:
baseDirectory: .next
files:
- '**/*'
cache:
paths:
- node_modules/**/*
appRoot: app_builder
When I replace build command with yarn build
it works without errors. I tried to build it with Next.js v12 & v11. The same problem appears. There is no additional info in logs on why this issue is happening. Any help would be greatly appreciated. :)
@progexplorer24 So few things.
You seem to have a serverless error, I think it's because you don't have the build steps as I wrote them down. If the issue persists even after you change your build settings, contact the Amplify team on Discord or through a support ticket. They are the only ones who can see the serverless errors atm.
Here is my amplify build for reference:
version: 1
applications:
- appRoot: apps/fox
env:
variables:
#AMPLIFY_DIFF_DEPLOY: true
backend:
phases:
build:
commands:
- echo BACKEND BUILD
# We back out, copy the amplify config before build, move it into the monorepo root and call it a day.
# We do this for all amplify envs as long as we deploy in a monorepo.
# You might be asking "Why?" Well i'm sick of #current-backend bitching about missing deps so I made amplify it's own package and then I realized all
# future packages should do the same and they can be copied to the projects they need to be copied to.
- cd ../../
- cd amplify
- mv fox/ ../apps/fox/
- cd ../
- cd apps/fox/
- export NODE_OPTIONS="--max-old-space-size=8192"
- amplifyPush --simple
frontend:
phases:
preBuild:
commands:
- echo FRONTEND PREBUILD
- cd ../../
# We don't need to move folders, we already moved out to the root at the backend build step.
- nvm install 16.15.1
- nvm use 16.15.1
- node -v
- export NODE_OPTIONS=--max-old-space-size=8192
- npx pnpm install
build:
commands:
- echo FRONTEND BUILD
# - aws s3 cp amplify.yml s3://fox-sandbox/public/
# - yarn amplify:clean:current-backend
- npx pnpm run fox:build
- cd apps/fox
# This step is for some custom serverless config options.
# Modifying the headers from serverless works.
- cp serverless/serverless.yml serverless.yml
# - aws s3 cp serverless.yml s3://fox-sandbox/public/
postBuild:
commands:
- ls
artifacts:
baseDirectory: .next
files:
- '**/*'
cache:
paths:
- node_modules/**/*
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Before opening, please confirm:
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
14.15.3
Amplify CLI Version
4.51.1
What operating system are you using?
Windows 10
Amplify Categories
hosting
Amplify Commands
Not applicable
Describe the bug
I am trying to deploy a nextjs ssr app to amplify. The app is in an nx monorepo. The build fails at the very end without any explanation. sample repo here: https://github.com/estyh/ssr-nx with sample amplify appid dqsfqet8cqqaj region us-east-1
Expected behavior
Expect the build to succeed and get an amplify hosted ssr app!
Reproduction steps
npx create-nx-workspace@latest
create new nx workspace, use the nextjs templatenx run <appname>:build:production
this will run a prod build and put the output into dist/apps/amplify init
- accept all the defaults in the repo root, add amplify.yml with the following code:commit and push to github In the amplify console, select the new amplify app, and add a frontend. Connect to the repo, choose the monorepo option, and select the root as 'apps/'
Amplify should auto-detect the next-ssr framework and attempt a build.
It fails...
GraphQL schema(s)
No response
Log output
Additional information
My first amplify.yml attempt did not include
cd apps/nextapp
after the nx build command. This resulted in a different error:Here is a link to nx docs on how to deploy nextjs app to vercel: https://nx.dev/latest/react/guides/nextjs#deploying-to-vercel And here is a post about deploying to heroku via containers: https://blog.nrwl.io/painlessly-build-and-deploy-next-js-apps-with-nx-225e2721da78
I would love if I could deploy to amplify!