Build fails on branch change or git pull #16183
billsaysthis
started this conversation in
General
Replies: 2 comments 10 replies
-
These errors are from TypeScript... Need more information to help you |
Beta Was this translation helpful? Give feedback.
2 replies
-
Here's our tsconfig.json: {
"compilerOptions": {
"target": "es5",
"lib": ["es2019", "dom", "dom.iterable"],
"module": "commonjs",
"jsx": "react",
"allowJs": true,
"moduleResolution": "node",
"strict": true,
"sourceMap": true,
"esModuleInterop": true,
"skipLibCheck": true,
"baseUrl": "./src",
"rootDir": ".",
"allowSyntheticDefaultImports": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"resolveJsonModule": true,
"downlevelIteration": true,
"paths": {
"@src/*": ["*"],
"@components/*": ["components/common/*"],
"@complex/*": ["components/complex/*"],
"@config/*": ["config/*"],
"@hoc/*": ["components/hoc/*"],
"@utils/*": ["utils/*"],
"@graphql/*": ["graphql/*"],
"@const/*": ["const/*"],
"@interface/*": ["interface/*"],
"@fixtures/*": ["../cypress/fixtures/*"]
},
"typeRoots": ["./node_modules/@types", "customTypes/custom.d.ts"]
},
"exclude": ["node_modules", "tests", "build", "src/graphql/examples", "coverage", "express",
"jest.config.js", "mockService", "storybook-static", " stylelint.config.js", "msw-utils.ts"],
"useBabel": true,
"babelOptions": {
"babelrc": false,
"presets": [
[
"@babel/preset-typescript",
[
"@babel/preset-env",
{
"targets": {
"browsers": ["last 1 version", "ie >= 11"]
}
}
]
]
],
"plugins": ["@babel/plugin-transform-runtime"]
}
} |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This has been happning on our repo from v4.x until now (v5.72). If we change branches or do a git pull that changes some already compiled code we see a
Failed to compile
error and specific errors for the files in question. Would be great to find a configuration setting that would solve this.Some examples of specific errors:
Beta Was this translation helpful? Give feedback.
All reactions