Closed josechirivella closed 3 years ago
Hi @JoseChirivella14 ๐๐ป,
this wasn't a typo but was intended to solve cross-platform issues between Windows
, Mac OS
and Linux
with the cross-var-no-babel npm package.
While your solution works on Mac OS
. It breaks the remote reloading feature on Windows
.
I think the proper solution is to use cross-env-shell
(Just tested on Windows
and Mac OS
) instead of cross-var
/ cross-env
. cross-env-shell
is included in cross-env
package cross-env vs cross-env-shell
...
"shopify:watch": "cross-env-shell shopify-themekit watch --env=dev --allow-live --config .config/shopify/shopify.dev.yml --notify=http://localhost:$npm_package_config_reloadr_serverPort/reload",
...
Can you confirm if this works for you? And if it does, update your pull request?
cross-env
with cross-env-shell
for shopify:watch
tasknpm uninstall cross-var-no-babel
. This package is not required anymore, since cross-env-shell
fixes the cross-platform issuepackage.json
to 2.2.4
npm install
package.json
and updated package-lock.json
Solves an issue when running the command npm start
and the command shopify:watch
was failing due to a problem with the package cross-var
Hello!
Encounter an issue while running the
npm start
command. It took me a while until I found a typo in one of the task commands that should becross-env
instead ofcross-var