Skip to content

NX monorepo - payload is undefined #545

Answered by DanRibbens
ShakedHad asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @ShakedHad,

I reproduced the problem you had and was able to get further in the setup by changing the tsconfig.app.json the to have two more settings in the compilerOptions, they are "esModuleInterop" set to true and strict set to false.
With those changes my tsconfig.app.json is:

{
  "extends": "./tsconfig.json",
  "compilerOptions": {
    "outDir": "../../dist/out-tsc",
    "module": "commonjs",
    "types": ["node", "express"],
    "esModuleInterop": true,
    "strict": false
  },
  "exclude": ["jest.config.ts", "**/*.spec.ts", "**/*.test.ts"],
  "include": ["**/*.ts"]
}

Mine still isn't starting so there is one more thing to finish out. The last thing will be to make sure that yo…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ShakedHad
Comment options

Answer selected by ShakedHad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants