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

Cannot read property 'tap' of undefined with Typescript added #576

Open
leoliu34 opened this issue Mar 31, 2020 · 0 comments
Open

Cannot read property 'tap' of undefined with Typescript added #576

leoliu34 opened this issue Mar 31, 2020 · 0 comments

Comments

@leoliu34
Copy link

Typescript packages added

typescript@^3.8.3
"@types/jest": "^25.1.4",
"@types/node": "^13.9.8",
"@types/react": "^16.9.29",
"@types/react-dom": "^16.9.5"

Findings

  1. yarn build runs successfully and builds with the typescript packages
  2. After removing the typescript dependencies, the dev server runs fine.

Problem

Running yarn start with the typescript dependencies,
I see the following error with minimal clues on where the problem is,

yarn run v1.22.4
$ yarn relay
$ relay-compiler --src ./src --schema ./schema.graphql
HINT: pass --watch to keep watching for changes.

Writing js
Unchanged: 29 files
$ react-app start
Cannot read property 'tap' of undefined
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

My tsconfig.json is the default generated one and I've been trying to dig into the configs but no luck yet,

{
  "compilerOptions": {
    "target": "es5",
    "lib": [
      "dom",
      "dom.iterable",
      "esnext"
    ],
    "allowJs": true,
    "skipLibCheck": true,
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "module": "esnext",
    "moduleResolution": "node",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "noEmit": true,
    "jsx": "preserve"
  },
  "include": [
    "src"
  ]
}

Anyone care to shed some light? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant