Hi, I’m currently trying to figure out the same integration and coming up short on helpful tutorials. Were you able to find a solution or a guide that helped you with this? Thank you so much!
Hello! I actually found 2 related discussions that I was planning to try but since I’m on a tight schedule, I wouldn’t be able to try applying this at my current project.
And it seems there are documentations as well for using Shopify CLI and Continuous Integration, but it’s mainly for GitHub and CircleCI: https://shopify.dev/apps/tools/cli/ci-cd
Maybe you can think of an idea by reading this documentation and make your own workaround and make it work too with GitLab.
I wonder if anyone has run into the following error in Gitlab CI.
> shopify app deploy
ERROR Raw mode is not supported on the current process.stdin, which Ink uses
as input stream by default.
Read about how to prevent this error on
https://github.com/vadimdemedes/ink/#israwmodesupported
- Read about how to prevent this error on
https://github.com/vadimdemedes/ink/#israwmodesupported
- App.handleSetRawMode (node_modules/ink/build/components/App.js:56:27)
- (node_modules/ink/build/hooks/use-input.js:38:9)
-invokePassiveEffect (node_modules/react-reconciler/cjs/react-reconciler.devel
reate opment.js:16054:20)
-Object.invokeGuardedCa (node_modules/react-reconciler/cjs/react-reconciler.de
lbackProd velopment.js:12101:10)
-invokeGuardedCal (node_modules/react-reconciler/cjs/react-reconciler.developm
back ent.js:12292:31)
-flushPassiveEffect (node_modules/react-reconciler/cjs/react-reconciler.develo
Impl pment.js:16141:9)
-unstable_runWithPriori (node_modules/scheduler/cjs/scheduler.development.js:4
y 68:12)
-runWithPriori (node_modules/react-reconciler/cjs/react-reconciler.development
y .js:2495:10)
-flushPassiveEff (node_modules/react-reconciler/cjs/react-reconciler.developme
cts nt.js:16014:14)
-performSyncWorkOn (node_modules/react-reconciler/cjs/react-reconciler.develop
oot ment.js:14797:3)
In my .gitlab-ci file, I have the steps as per the above answer. And it seems to be running the deploy command but from the looks of the error, it seems like the CLI is trying to use stdin which I guess isn’t available within the environment.
I’m getting the same error. Just installed CLI 3.0 on Windows (seemed successful), and the first command I entered (shopify theme init) is returning this raw mode error.
I get this on a windows box locally when I even try to initialize a new application via: npm init @Shopify_77 /app@latest. Same error when I use latest yarn as well.
It seems like (at least locally anyway) it’s a problem with using git bash. If you run it in powershell it runs correctly and you don’t get the raw error. I found this documentation: https://blog.logrocket.com/using-stdout-stdin-stderr-node-js/