I have heard that Script Editor is being deprecated and we must move to “functions.” It appears that functions are a part of “custom apps.” So, i’m going through the steps to create a custom app, but i can’t get it up and running… Here’s the steps i take:
1.npm init @Shopify_77 [email removed]
-
Go into the folder and run npm dev
-
It prompts me to create a new app or connect to an existing one.
If i say “existing” it populates a list, but I’m not sure exactly where these are coming from, possibly me repeatedly failing, but anyway i pick one.. ok
- It fails with
The store you specified (.myshopify.com) is not a dev store │
│ │
│ Run dev --reset and select an eligible dev store. │
│
I have tried running npm run dev – --reset and i get the same result
I recall at one point it asked me to authenticated, so i try running “shopify auth logout” to clear that out. it says it sucessfully logged out, but at no point after does it attempt to login, so i’m wondering if that’s inaccurate.
Questions
-
where are these pre-populated existing apps coming from? I know they were previously failed attempts, but i want to remove all of them and just keep one that works.
-
why is it trying to connect to a no-longer-existing store and how do i reset this? It’s possible that this was a failed config attempt in the past but i can’t find a way to change it
-
After i logout, why is it not asking me to login again, and why is it attempting to connect to existing apps and the once-existing-but-no-longer-existing store? Especailly if i’m logged out?
it seems like there’s some hidden configuration somewhere that needs to be reset but i can’t find it. I basically want to start from scratch with a blank app, have it connect in my store, which i’d like to set/configure, and then see it work, but i can’t, and i don’t see any commands using “shopify commands” that would help me