Closed ntekka closed 2 years ago
From our side we see this:
2021-02-17T23:16:02.761Z [WARNING]: Failed to compile.
2021-02-17T23:16:02.765Z [WARNING]: ./src/pages/_app.tsx:3:24
Type error: Cannot find module '@artbeat/service-backend/src/aws-exports' or its corresponding type declarations.
1 | import AuthGuard from '@artbeat/common-ui/components/AuthGuard';
2 | import { getCookieSettings } from '@artbeat/common-ui/services/route';
> 3 | import awsExports from '@artbeat/service-backend/src/aws-exports';
| ^
4 | import Amplify from '@aws-amplify/core';
5 | import '@shopify/polaris/dist/styles.css';
6 | import { DefaultSeo } from 'next-seo';
2021-02-17T23:16:02.783Z [WARNING]: error Command failed with exit code 1.
2021-02-17T23:16:02.784Z [INFO]: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
2021-02-17T23:16:02.798Z [WARNING]: error Command failed with exit code 1.
2021-02-17T23:16:02.798Z [INFO]: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
2021-02-17T23:16:02.803Z [ERROR]: !!! Build failed
2021-02-17T23:16:02.803Z [ERROR]: !!! Non-Zero Exit Code detected
2021-02-17T23:16:02.803Z [INFO]: # Starting environment caching...
We will look into why some log messages are not showing up in the build output.
Having same issue any possible solution?
I am having "similar" issue my build log just says Failed to compile.
at the end without the following error messages below it
From our side we see this:
2021-02-17T23:16:02.761Z [WARNING]: Failed to compile. 2021-02-17T23:16:02.765Z [WARNING]: ./src/pages/_app.tsx:3:24 Type error: Cannot find module '@artbeat/service-backend/src/aws-exports' or its corresponding type declarations. 1 | import AuthGuard from '@artbeat/common-ui/components/AuthGuard'; 2 | import { getCookieSettings } from '@artbeat/common-ui/services/route'; > 3 | import awsExports from '@artbeat/service-backend/src/aws-exports'; | ^ 4 | import Amplify from '@aws-amplify/core'; 5 | import '@shopify/polaris/dist/styles.css'; 6 | import { DefaultSeo } from 'next-seo'; 2021-02-17T23:16:02.783Z [WARNING]: error Command failed with exit code 1. 2021-02-17T23:16:02.784Z [INFO]: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. 2021-02-17T23:16:02.798Z [WARNING]: error Command failed with exit code 1. 2021-02-17T23:16:02.798Z [INFO]: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. 2021-02-17T23:16:02.803Z [ERROR]: !!! Build failed 2021-02-17T23:16:02.803Z [ERROR]: !!! Non-Zero Exit Code detected 2021-02-17T23:16:02.803Z [INFO]: # Starting environment caching...
We will look into why some log messages are not showing up in the build output.
I am having "similar" issue my build log just says Failed to compile.
at the end without the following error messages below it. From what im gathering it's a file name issue i.e changing app.ts
-> App.ts
but without the errors showing up for the file that is causing the issue I don't know which folder/file to fix - please help here how can I get the logs you are showing
Hi @ntekka, @shreddish. Sorry for the inconvenience, we've made many improvements in our build system, does this issue still persist on your end? If you still have questions, please include your AppId in your comment. Thank you!
@victorccccc thanks for responding. It may have been an old Amplify build but either way, I've since moved to serverless-nextjs to gain more control over debugging errors. My project has gotten beyond the intended use of the Amplify console so I do need the extra control.
I still do appreciate the work your team is doing! keep it up!
Closing this issue, but feel free to re-open. Thanks
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.
Please help!
I've tried hundreds of configuration combination without success. I also have a second App with the almost exact setting that works just fine but was set up months ago.
Here is the configuration and log that I tried, my custom amplifyPull.sh script works in previous project and it basically does a amplify pull to get aws-config.json:
Here is the root structure
log