Error while building user interface with Polaris while following NodeJS and React Shopify document

Highlighted
New Member
1 0 0

Hello all,

I am currently receiving an error while following the Shopify documentation on building a Shopify App with Nodejs and React. The error occurs at the very start of section 4, I make the first changes written in the guide and run " npm run dev ", things seem to compile fine but when I look at the application in my Partner store it throws the first error that I posted in the images below. I am following the guide very precisely and am curious if this is a known issue or if anyone can suggest any debugging methods to help diagnose this issue.

Thank you.

 

Here is more information:

 

ShopifyPolarisError.png

 

 

ShopifyPolaris-TerminalOutput.png

 

 

{
  "name": "shopify-embedded-app",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "dev": "node server.js",
    "build": "next build",
    "start": "NODE_ENV=production node server.js"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "@shopify/koa-shopify-auth": "^3.1.72",
    "@shopify/polaris": "^5.9.1",
    "@zeit/next-css": "^1.0.1",
    "dotenv": "^8.2.0",
    "isomorphic-fetch": "^3.0.0",
    "koa": "^2.13.0",
    "koa-session": "^6.1.0",
    "next": "^10.0.0",
    "react": "^17.0.1",
    "react-dom": "^17.0.1"
  }
}

 

0 Likes