App Failed to Load | Shopify POS Tile

Solved

App Failed to Load | Shopify POS Tile

mrniamster
Shopify Partner
15 1 1

i'm getting "app failed to load” on Shopify tile , when i created a fresh extension .

mrniamster_0-1723724898002.png


On inspecting Chrome dev tool :
- it gives some internal error from posui.js file which gets auto-generated.

mrniamster_0-1723725243345.png

 


 .toml File

# The version of APIs your extension will receive. Learn more:
# https://shopify.dev/docs/api/usage/versioning
api_version = "2024-04"

[[extensions]]
type = "ui_extension"
name = "posui"

handle = "posui"
description = "A react POS UI extension"

# Controls where in POS your extension will be injected,
# and the file that contains your extension’s source code.
[[extensions.targeting]]
module = "./src/Tile.jsx"
target = "pos.home.tile.render"

[[extensions.targeting]]
module = "./src/Modal.jsx"
target = "pos.home.modal.render"


Package.json

{
  "name": "",
  "version": "1.0.0",
  "license": "UNLICENSED",
  "scripts": {
    "shopify": "shopify",
    "build": "shopify app build",
    "dev": "shopify app dev",
    "info": "shopify app info",
    "generate": "shopify app generate",
    "deploy": "shopify app deploy"
  },
  "dependencies": {
    "@shopify/app": "^3.58.2",
    "@shopify/cli": "^3.65.3",
    "@shopify/ui-extensions": "2024.4.2",
    "@shopify/ui-extensions-react": "2024.4.2",
    "react": "^18.3.1"
  },
  "author": "niteshkumar",
  "private": true,
  "description": "This is a template for building a [Shopify app](https://shopify.dev/docs/apps/getting-started) that includes no app home UI. It contains the basics for building a Shopify app that uses only app extensions.",
  "main": "index.js",
  "keywords": []
}

 

Accepted Solution (1)
mrniamster
Shopify Partner
15 1 1

This is an accepted solution.

After deleting the whole folder, starting the app from scratch with shopify -init @latest , and remix template , it worked fine.

View solution in original post

Replies 2 (2)

mrniamster
Shopify Partner
15 1 1

can anyone please help me in this issue..

mrniamster
Shopify Partner
15 1 1

This is an accepted solution.

After deleting the whole folder, starting the app from scratch with shopify -init @latest , and remix template , it worked fine.