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

Building aws-amplify from a fresh checkout fails due #261

Closed
buggy opened this issue Feb 11, 2018 · 4 comments
Closed

Building aws-amplify from a fresh checkout fails due #261

buggy opened this issue Feb 11, 2018 · 4 comments

Comments

@buggy
Copy link
Contributor

buggy commented Feb 11, 2018

When attempting to build aws-amplify from a fresh checkout it fails.

node_modules/@types/lodash/index.d.ts(12651,53): error TS2344: Type 'T' does not satisfy the constraint 'object'.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! aws-amplify@0.1.36 build-with-test: `npm run clean && npm test && tsc && webpack`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the aws-amplify@0.1.36 build-with-test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/rick/.npm/_logs/2018-02-11T11_52_25_116Z-debug.log

There's an issue DefinitelyTyped/DefinitelyTyped#23375 for it saying you need to use Typescript < 2.7.0

@mlabieniec
Copy link
Contributor

@buggy it looks like the version you are building is very old:

aws-amplify@0.1.36

the latest is 0.2.4. Also, for local build you would need to use yarn workspaces if you wanted to build everything, see here: https://github.com/aws/aws-amplify/wiki/Local-Development

Or if you just want to build the aws-amplify package, you would just need to be sure you are using the correct tsc version, which you could use node_modules/.bin/tsc

@mlabieniec
Copy link
Contributor

@buggy saw your pr, thank you! will get that reviewed this week.

@buggy
Copy link
Contributor Author

buggy commented Feb 11, 2018

After updating this doesn't seem to be a problem now. I'll close the PR too.

@buggy buggy closed this as completed Feb 11, 2018
@github-actions
Copy link

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants