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

[BUG] CloudscapeReactTsWebsiteProject build breaks with "" #234

Closed
donatoaz opened this issue Dec 6, 2022 · 1 comment
Closed

[BUG] CloudscapeReactTsWebsiteProject build breaks with "" #234

donatoaz opened this issue Dec 6, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@donatoaz
Copy link
Contributor

donatoaz commented Dec 6, 2022

Describe the bug

Building a CloudscapeReactTsWebsiteProject created with the following code should succeed:

const website = new CloudscapeReactTsWebsiteProject({
  name: "website",
  defaultReleaseBranch: "mainline",
  parent: monorepo,
  outdir: "packages/website",
  deps: ["@aws-amplify/auth", "@aws-amplify/core"],
});

Expected Behavior

Build is successful

Current Behavior

> $ npx nx run-many --target=build --all                                                                                                                   [±mainline ●●]


    ✖  nx run website:build
yarn run v1.22.19
$ npx projen build
       👾 build » compile | react-scripts build
       Creating an optimized production build...
       Failed to compile.
       
       [eslint] 
       src/NavHeader.tsx
         Line 4:1:  '@aws-amplify/auth' should be listed in the project's dependencies. Run 'npm i -S @aws-amplify/auth' to add it  import/no-extraneous-dependencies
       
       Search for the keywords to learn more about each error.
       
       
       👾 Task "build » compile" failed when executing "react-scripts build" (cwd: /Users/donatoaz/src/aws/protos/rotoplas/src/frontend/packages/website)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Reproduction Steps

Create nx-monorepo project. Add CloudscapeReactTsWebsiteProject as described above. Run npx projen && npx nx run website:build.

Possible Solution

No response

Additional Information/Context

No response

PDK version used

^0.65.48

What languages are you seeing this issue on?

Typescript

Environment details (OS name and version, etc.)

mac os, node js v14.19.0

@donatoaz donatoaz added the bug Something isn't working label Dec 6, 2022
@donatoaz
Copy link
Contributor Author

donatoaz commented Dec 6, 2022

Starting from scratch solved the problem. But I'd be interested in understanding why it was failing originally.

@donatoaz donatoaz closed this as completed Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant