nimblehq / react-templates

Our optimized React bolierplate used in our projects
https://nimblehq.co
MIT License
15 stars 2 forks source link

Fix: CI failing on development branch #153

Closed bterone closed 1 year ago

bterone commented 1 year ago

Issue

There are currently two errors being raised. Full logs here 🔴

1) generate
       generates a vite app test-app with github and bootstrap:
     Error: ENOENT: no such file or directory, open '../../../test-app/package.json'
      at Object.openSync (node:fs:590:3)
      at Object.readFileSync (node:fs:458:35)
      at replaceLine (src/helpers/file-editor.ts:60:26)
      at /home/runner/work/react-templates/react-templates/packages/cli-tool/src/template/initialize-vite-app.ts:57:16
      at Array.forEach (<anonymous>)
      at replaceAppName (src/template/initialize-vite-app.ts:56:25)
      at /home/runner/work/react-templates/react-templates/packages/cli-tool/src/template/initialize-vite-app.ts:89:17
      at processTicksAndRejections (node:internal/process/task_queues:96:5)
      at async initializeTemplate (src/template/index.ts:22:5)
      at async Generate.run (src/commands/generate/index.ts:61:7)
      at async Generate._run (/home/runner/work/react-templates/react-templates/node_modules/@oclif/core/lib/command.js:67:22)
      at async Config.runCommand (/home/runner/work/react-templates/react-templates/node_modules/@oclif/core/lib/config/config.js:[268](https://github.com/nimblehq/react-templates/actions/runs/4012955848/jobs/6891817392#step:6:269):25)
      at async Object.run (/home/runner/work/react-templates/react-templates/node_modules/@oclif/test/lib/command.js:21:13)
      at async Context.run (/home/runner/work/react-templates/react-templates/node_modules/fancy-test/lib/base.js:68:25)

  2) generate
       generates a vite app test-app with gitlab and tailwindCss:
     Error: ENOENT: no such file or directory, open '../../../test-app/package.json'
      at Object.openSync (node:fs:590:3)
      at Object.readFileSync (node:fs:458:35)
      at replaceLine (src/helpers/file-editor.ts:60:26)
      at /home/runner/work/react-templates/react-templates/packages/cli-tool/src/template/initialize-vite-app.ts:57:16
      at Array.forEach (<anonymous>)
      at replaceAppName (src/template/initialize-vite-app.ts:56:25)
      at /home/runner/work/react-templates/react-templates/packages/cli-tool/src/template/initialize-vite-app.ts:89:17
      at processTicksAndRejections (node:internal/process/task_queues:96:5)
      at async initializeTemplate (src/template/index.ts:22:5)
      at async Generate.run (src/commands/generate/index.ts:61:7)
      at async Generate._run (/home/runner/work/react-templates/react-templates/node_modules/@oclif/core/lib/command.js:67:22)
      at async Config.runCommand (/home/runner/work/react-templates/react-templates/node_modules/@oclif/core/lib/config/config.js:268:25)
      at async Object.run (/home/runner/work/react-templates/react-templates/node_modules/@oclif/test/lib/command.js:21:13)
      at async Context.run (/home/runner/work/react-templates/react-templates/node_modules/fancy-test/lib/base.js:68:25)

Expected

Ci passes regularly

Steps to reproduce

  1. Create any branch and create a PR
  2. Run the CI