Closed coreway1 closed 2 years ago
Where are you getting the error? Did you read the error message and try to figure it out? It says "History.create" is not a function". So just search for that text in your page code (at the line: const history = History.create(app);
). It's probably an issue with your code here.
Also, I see in your createShopifyAuth
function you are passing in parameters that aren't needed. The only parameters you need are: accessMode, afterAuth
.
I would recommend using Typescript and ESLint if you aren't already, to catch issues like this.
i have setup simple koa shopify auth first time its working properly after redirect in side page getting below error
Here is my server.js code
Page code