Deploy error - Cannot destructure property 'theme' of 'undefined'
See original GitHub issueHi,
I’m not able to deploy my theme anymore, as I used to do. I don’t think I changed anything here. I’m using the online version of Ghost.
This is the error I face:
Error [InternalServerError]: Cannot destructure property 'theme' of 'undefined' as it is undefined.
at /home/runner/work/_actions/TryGhost/action-deploy-theme/v1.4.0/dist/index.js:7300:33
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async main (/home/runner/work/_actions/TryGhost/action-deploy-theme/v1.4.0/dist/index.js:1572:9) {
name: 'InternalServerError',
context: null,
type: 'InternalServerError',
details: null,
property: null,
help: null,
code: null,
id: '2b380560-e096-11eb-97cd-e1a27588ea00'
}
This is my config:
name: Deploy Theme
on:
push:
branches:
- master
- main
jobs:
deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Deploy Ghost Theme
uses: TryGhost/action-deploy-theme@v1.4.0
with:
api-url: ${{ secrets.GHOST_ADMIN_API_URL }}
api-key: ${{ secrets.GHOST_ADMIN_API_KEY }}
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:7
Top Results From Across the Web
[error] Cannot destructure property 'nuxt' of 'this' as it is ...
Working fine on dev. When deploying to vercel it fails: [error] Cannot destructure property 'nuxt' of 'this' as it is undefined. Might be ......
Read more >WebpackError: TypeError: Cannot destructure property
Have you tried rm -rf node_modules and npm install again? If what you have works in gatsby develop but doesn't work with gatsby...
Read more >Error “Cannot destructure property”
In the actual v 3.0.6 I got an JS-error. Uncaught TypeError: Cannot destructure property '__' of 'wp.i18n' as it is undefined. at ...
Read more >body": Cannot destructure property 'config' of 'strapi.plugin ...
commnand. It installs the Strapi app fine, but when I try to run “npm run develop”, I get this error: “Strapi: Middleware “ ......
Read more >Ionic 4 Cannot destructure property `createHash` of 'undefined ...
Can you help me? ... :wave: Hi there! Hmm, not really sure what could be going on here. But the error points to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok, bug is resolved and came from ghost.org…
Deploys are now running fine again !
@paultalarian @potsky
Fix: in package.json the naming convention needs to be unique. Please see below for the convention that I am now using when deploying.
Commit 1
"name": "casper-new-09072021-01"
Commit 2
"name": "casper-new-09072021-02"
Hope this helps and makes sense