Apple M1 build crashes when trying to build dependency of themekit
See original GitHub issueWas running into this issue trying to setup my dev environment on a new mac mini. Not sure if its something on my end or something that needs to be updated.
[6/15] ⠠ gifsicle
[9/15] ⠠ pngquant-bin
[7/15] ⠠ mozjpeg
[4/15] ⠠ @shopify/themekit
error /Users/andrewamistad/Sites/dry-farm-wines/node_modules/@shopify/themekit: Command failed.
Exit code: 1
Command: node ./lib/cli.js install
Arguments:
Directory: /Users/andrewamistad/Sites/dry-farm-wines/node_modules/@shopify/themekit
Output:
-/Users/andrewamistad/Sites/dry-farm-wines/node_modules/@shopify/themekit/lib/install.js:46
throw runErr;
^
Error: The `/Users/andrewamistad/Sites/dry-farm-wines/node_modules/@shopify/themekit/bin/theme` binary doesn't seem to work correctly
at BinWrapper.<anonymous> (/Users/andrewamistad/Sites/dry-farm-wines/node_modules/bin-wrapper/index.js:156:7)
at ChildProcess.<anonymous> (/Users/andrewamistad/Sites/dry-farm-wines/node_modules/bin-check/index.js:26:4)```
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:29 (4 by maintainers)
Top Results From Across the Web
Crash on MacOS(M1 series): uncaught exception ...
I'm using Storyboards and set all the textfields' Content Type to unspecified and the crashing has stopped. Unfortunately, I tried adding .
Read more >Making Slate work with M1 Mac
This solution is based on a discussion here regarding a crash when trying to install/run Slate on M1 Macs due to the dependency...
Read more >Shopify 1.0, Theme Kit, Node, Gulp, SASS, Git & VS Code
Shopify Theme Development Crash Course - Shopify 1.0, Theme Kit, Node, ... more (if you want to learn how to build awesome-looking websites ......
Read more >Getting started with Theme Kit
Theme Kit is a cross-platform command line tool that you can use to build Shopify ... The Apple M1 architecture is not yet...
Read more >Signing Electron build for M1 macs causes renderer to crash
What I'm trying to figure out is why the renderer process crashes on the v8 level only when signed on an m1 (no...
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
For anyone still not able to figure this out. Check out this solution. It worked for me and my local updates finally started to upload to shopify for me to test locally, the correct way. https://github.com/Shopify/slate/issues/1107
It also fixed an error from not showing
unknown command "[object Object]" for "theme"
========== STEPS I took ============
Updated
packages.json
file line"@shopify/themekit": "^0.6.12",
to be"@shopify/themekit": "^1.1.7",
and added aresolution
afterdependencies
."resolutions": { "**/@shopify/themekit": "^1.1.7" },
That way it would force yarn to use v1.1.9 of themekit instead of v0.6.12.Opened Terminal using the “Open using Rosetta” option.
Ran
yarn
and successfully compiledRan
yarn start
but got errorunknown command "[object Object]" for "theme"
and seemed to be coming from a the slate-sync/index.js line 4:const themekit = require('@shopify/themekit').command;
. I removed.command
and the error went away after runningyarn start
but would not upload to shopify to show my local version of the site.I updated the file
[theme path]/node_modules/@shopify/slate-sync/index.js
to reflect the changes found here: Slate #1107: comment thenyarn
complied correctly,yarn start
started correctly and uploaded to shopify.I keep on having that same issue,
unknown command "[object Object]" for "theme"
, the only difference being that im using@shopify/slate-tools@0.14.0
which doesn’t have aslate-sync
folder for me to apply the changes proposed here Slate #1107: comment.Does anybody know what to do in that case?