\"build\": \"react-scripts build\",\nError:
\nTypeScript error in /home/runner/work/xxxxxxxx/src/components/input/groups/PeriodFilter.tsx(17,14):\nJSX element class does not support attributes because it does not have a 'props' property. TS2607\n\n<LabeledInput\n icon=\"fa fa-calendar\"\n label={<FormattedMessage id=\"TIME_PERIOD\" />}\n ^\n>\n<PeriodSelect\nperiodOptions={periodOptions}\nGithub Action:
\nname: Deploy\n\non:\n push:\n branches:\n - master\n\nenv:\n ACTIONS_ALLOW_UNSECURE_COMMANDS: true\n\njobs:\n deploy:\n\n runs-on: ubuntu-latest\n timeout-minutes: 15\n steps:\n - uses: actions/checkout@v2\n - name: Use Node.js\n uses: actions/setup-node@v2-beta\n with:\n node-version: '12'\n check-latest: true\n - run: rm -rf node_modules/\n - run: npm install --production\n - run: npm run build\n env:\n CI: \"\"\n - run: curl -s https://get.simplelocalize.io | bash\n...\nI fixed it by replacing npm install with npm ci
-
|
Hey I got really weird problem. I use CRA with TypeScript template. I cannot build my app using What I tried so far:
Package.json deps Error: Github Action: |
Beta Was this translation helpful? Give feedback.
-
|
Can you check if this link works - https://stackoverflow.com/questions/63445967/githubs-action-is-not-building-react-application. It worked for me! |
Beta Was this translation helpful? Give feedback.
-
|
I fixed it by replacing |
Beta Was this translation helpful? Give feedback.
-
|
Pra mim ainda continua com problema |
Beta Was this translation helpful? Give feedback.
-
|
Facing the some issue: failing on CI but runs fine on local machine my tsconfig: |
Beta Was this translation helpful? Give feedback.
-
|
When you deploy your application using CI/CD, most servers contain by default the CI in true. It means that Neflify treating warnings as errors. Then, You must solve warnings in your project or execute the command |
Beta Was this translation helpful? Give feedback.
-
|
I'm getting this issue |
Beta Was this translation helpful? Give feedback.
I fixed it by replacing
npm installwithnpm ci