Re: 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.