Typescript-react-starter: Cannot read property 'getStart' of undefined

Created on 15 May 2017  路  4Comments  路  Source: microsoft/TypeScript-React-Starter

My app works perfectly with no warnings or errors in dev mode (yarn start). But I am getting an error when I attempt a build (yarn build):

df2:client dford$ yarn build
yarn build v0.23.2
$ react-scripts-ts build 
Creating an optimized production build...
ts-loader: Using [email protected] and /Volumes/repos/tc-web/client/tsconfig.json
Warning: Cannot read property 'getStart' of undefined
Failed to compile.

The string getStart appears no where in my code.

with tslint.json configuration:

{
  "extends": [
    "tslint-react"
  ],
  "rules": {
    "jsx-no-lambda": false
  }
}

Most helpful comment

I added the "jsx-alignment": false rule to tslint.json to prevent the error. I believe it may be related to the latest TS (palantir/tslint-react#87).

All 4 comments

I added the "jsx-alignment": false rule to tslint.json to prevent the error. I believe it may be related to the latest TS (palantir/tslint-react#87).

@StokeMasterJack @corydeppen any idea if you're still running into this?

I still have this issue when using https://github.com/wmonk/create-react-app-typescript if that helps.
During development and building but it works fine anyways

Any updates on this? I can confirm that @corydeppen suggestion fixed it for me but I would like to keep jsx-alignment on. Also it does not reproduce for all my .tsx files

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BenjaminWatts picture BenjaminWatts  路  6Comments

wuchaoya picture wuchaoya  路  9Comments

ghost picture ghost  路  7Comments

simonccarter picture simonccarter  路  3Comments

wilomgfx picture wilomgfx  路  6Comments