Amplify-cli: amplify api update results in error: Cannot redefine property: flatMap

Created on 1 Oct 2018  路  3Comments  路  Source: aws-amplify/amplify-cli

amplify api update results in error: Cannot redefine property: flatMap

When running

amplify api update
I get

TypeError: Cannot redefine property: flatMap
    at Function.defineProperty (<anonymous>)
    at Object.<anonymous> (/usr/local/Cellar/node/9.11.1/lib/node_modules/@aws-amplify/cli/node_modules/aws-appsync-codegen/src/utilities/array.ts:9:8)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/usr/local/Cellar/node/9.11.1/lib/node_modules/@aws-amplify/cli/node_modules/aws-appsync-codegen/src/compiler/legacyIR.ts:10:1)
bug

Most helpful comment

That happened to me and after running amplify configure project and confirmed default values the problem was solved.

All 3 comments

@jeanpaulcozzatti Did you change update node after creating the project?

That happened to me and after running amplify configure project and confirmed default values the problem was solved.

@jeanpaulcozzatti Please feel to re-open this issue if the problem still persists.

Was this page helpful?
0 / 5 - 0 ratings