I’m new to this and wanted to learn how to create shopify apps
I’ve create the app and it is available in my development store.
the next stage is to run ‘Shopify Serve’, which generates the below…
It never passes ‘[ wait ] compiling …’
I would really appreciate any help? in step by step format please… Thank you
┃ ome/comet1/.shopify-app-cli/bin/support/load_shopify.rb:12: warning: Insecure world writable dir /home/comet1/.nvm/versions/node/v12.16.2 in PATH, mode 040777
┃ > shopify-node-app@1.0.0 dev /home/comet1/dreamer_custom
┃ > NODE_ENV=development nodemon ./server/index.js --watch ./server/index.js
┃ Do you want to update your application url? (Choose with ↑ ↓ ⏎)
┃ [nodemon] 2.0.2
┃ [nodemon] to restart at any time, enter rs
┃ [nodemon] watching dir(s): server/index.js
┃ [nodemon] watching extensions: js,mjs,json
┃ [nodemon] starting node ./server/index.js
┃ Browserslist: caniuse-lite is outdated. Please run next command npm update
┃ > Ready on http://localhost:8081
┃ [ wait ] compiling …
I was able to get past this by updating my ngrok URL under App Setup and then installing my app on my development store. After that it complied and worked as expected.
you should see an ngrok.io URL in your output. Place that under App setup in your shopify partner account. You might have to re-run shopify serve, then the app will complie. See below screenshot. Hope this helps!