Questions and discussions about using the Shopify CLI and Shopify-built libraries.
I created a shopify app using cli and why am I getting this error
Hi @arimtiaz
Can you share your project structure?
Also, what kind of database did you use, sqllite?mysql?mongo? which one? Or other.
After following these steps https://shopify.dev/docs/apps/build/scaffold-app i get the same error. The Console gives me further output, that some files like ../app/routes/webhooks.jsx failed to load with the question if the file does exist. But when i browse the project structure all files are present.
shopify cli version 3.63.2
Were you able to solve it?
I used the shopify cli to create the app (remix), I haven't even touched the file and it is showing me this error. As far as I know I dont kneed to connect to a db if i use the shopify cli to create a app
I just followed the default shopify app creating process using the cli. Here is the file structure
I'm getting the same error.
I tried replacing the character '~' by "." in the following line of file "shopify.server.js":
import prisma from "./db.server";
Now the error happens in another import, but with the same '~' issue:
For some reason the path setting on tsconfig.json is not being recognized
"paths": {
"~/*": ["./app/*"]
},
So, the quickly solution is replacing "~" by "." or ".." according to the location of the file.
It is working for me:
Hopefully somebody will post how to solve the issue with tsconfig.json to avoid replacing "~" in every file.
Hello,
thank you for the quick response! The replacement of "~" by "." or ".." worked for me as well.