What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Delivery Customization - Doesn't have package.json Error

Delivery Customization - Doesn't have package.json Error

Yodit
Shopify Partner
10 0 3

Hi, 

 

i am trying to generate the delivery customization function and when trying to run "shopify app function typegen" i get the following error: 

 

Bildschirmfoto 2024-05-27 um 14.03.15.png

 

But i have a package.json in the extension/delivery-customization: 

 

{
"name": "delivery-customization-order",
"version": "0.0.1",
"license": "UNLICENSED",
"scripts": {
"shopify": "npm exec -- shopify",
"typegen": "npm exec -- shopify app function typegen",
"build": "npm exec -- shopify app function build",
"preview": "npm exec -- shopify app function run",
"test": "vitest"
},
"codegen": {
"schema": "schema.graphql",
"documents": "src/*.graphql",
"generates": {
"./generated/api.ts": {
"plugins": [
"typescript",
"typescript-operations"
]
}
},
"config": {
"omitOperationSuffix": true
}
},
"devDependencies": {
"vitest": "^0.29.8"
},
"dependencies": {
"@shopify/shopify_function": "0.1.0",
"javy": "0.1.1"
}
}
I dont' know why i am getting this error. Does anyone know what the problem could be here?
 
Best Regards, 
 
Yodit 
Reply 1 (1)

Yodit
Shopify Partner
10 0 3
Hello,

I still get the error after trying all steps given in this email.

There is no other error message than already provided. I just want to generate an delivery customization extension.