Here is my package.json file:
{
"name": "pos-ui-extension-discounts",
"private": true,
"version": "1.0.1",
"license": "UNLICENSED",
"dependencies": {
"@shopify/retail-ui-extensions": "1.5.0",
"@shopify/retail-ui-extensions-react": "1.5.0",
"react": "^17.0.0"
},
"devDependencies": {
"@types/react": "^17.0.0"
}
}
and here is my shopify.ui.extension.toml file.
type = "pos_ui_extension"
name = "Active discounts"
description = "Active discounts"
handle = "pos-ui-extension-discounts"
extension_points = [
'pos.home.tile.render',
'pos.home.modal.render'
]
[capabilities]
network_access = true
It seems like I did everything correctly according to the documentation. But i get the following error when adding tile to SmartGrid.
Maybe someone has already encountered such a problem. Tell me the solution if you know, please.
