question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Apple M1 build crashes when trying to build dependency of themekit

See original GitHub issue

Was 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:open
  • Created 3 years ago
  • Reactions:6
  • Comments:29 (4 by maintainers)

github_iconTop GitHub Comments

8reactions
kgeacommented, Jul 19, 2021

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 ============

  1. Updated packages.json file line"@shopify/themekit": "^0.6.12", to be "@shopify/themekit": "^1.1.7", and added a resolution after dependencies. "resolutions": { "**/@shopify/themekit": "^1.1.7" }, That way it would force yarn to use v1.1.9 of themekit instead of v0.6.12.

  2. Opened Terminal using the “Open using Rosetta” option.

  3. Ran yarn and successfully compiled

  4. Ran yarn start but got error unknown 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 running yarn start but would not upload to shopify to show my local version of the site.

  5. I updated the file [theme path]/node_modules/@shopify/slate-sync/index.js to reflect the changes found here: Slate #1107: comment then yarn complied correctly, yarn start started correctly and uploaded to shopify.

5reactions
rodrigobaezzcommented, Jan 20, 2022

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 a slate-sync folder for me to apply the changes proposed here Slate #1107: comment.

Does anybody know what to do in that case?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found