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
}
}
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
Most helpful comment
I added the
"jsx-alignment": falserule totslint.jsonto prevent the error. I believe it may be related to the latest TS (palantir/tslint-react#87).