#Astro CLI

8 messages · Page 1 of 1 (latest)

quick lodge
#

I never fully got CLI apps deployed but i m going to try to replicate. I reached https://dev.wix.com/docs/wix-cli/guides/get-started/quick-start-an-app#step-2--test-the-app but once the app is installed in the site i dont see anything on the site ... neither a widget nor a dashboard or anything else that i could understand being rendered by this skeleton...

I ll try adding and extension but so far not sure why the wording "Test your app" is used

quick lodge
#

After creating a site widget and trying to release it i get ....

Before creating a new version, let's create a preview of your app

✔ Uploaded successfully!
✖ App configuration upload failed because of violations.
⚠ Violations:
- `componentsOverride.modifiedComponents[1].data.data.customElementWidget.
presets[0].name`: has size 0, expected 1 or more

but that custom element thumbnail image exists under the public folder ... so not sure what to do next or how to get the installed app to show anything on the site ...

jaunty mulch
#

@quick lodge sounds like a separate issue you are having. Could become quite confusing in this thread 🙂

quick lodge
#

I created a separate one. I lk try to replicate the endpoints one later if I can get to it

quick lodge
#

@jaunty mulch I cannot reproduce your error but I get a CORS error as follows

CustomElementPreviewIframe.8dff568b.html:1 Access to fetch at 'https://ubyi7n-42e0b17dacc5b919-..........wix-host.com/api/test-api' from origin 'null' has been blocked by CORS policy: Request header field authorization is not allowed by Access-Control-Allow-Headers in preflight response.
wixClient-B9j2P-9x.js:1  GET https://ubyi7n-42e0b17dacc5b919-.........wix-host.com/api/test-api net::ERR_FAILED
l @ wixClient-B9j2P-9x.js:1
await in l
(anonymous) @ a6a90214-526e-485d-a35e-ae2bb2090d09-BhQ7Y3az.js:1
(anonymous) @ a6a90214-526e-485d-a35e-ae2bb2090d09-BhQ7Y3az.js:1
callEndpointGET @ a6a90214-526e-485d-a35e-ae2bb2090d09-BhQ7Y3az.js:1
a6a90214-526e-485d-a35e-ae2bb2090d09-BhQ7Y3az.js:1 Error: TypeError: Failed to fetch
    at Object.l [as fetchWithAuth] (wixClient-B9j2P-9x.js:1:16945)
    at async HTMLElement.callEndpointGET (a6a90214-526e-485d-a35e-ae2bb2090d09-BhQ7Y3az.js:1:2697)
callEndpointGET @ a6a90214-526e-485d-a35e-ae2bb2090d09-BhQ7Y3az.js:1

I hope Wix looks at these chats... sometimes it feels like we are left to our mercy ... I will stop investigating porting my app for now.

#

for anyone listening at Wix, i can push the repo online if needed

jaunty mulch
#

looks like a different error to what i am having. Would advise creating a thread for that error

quick lodge
#

About your debug, are you sure it is triggered by your enpoint call?
Did you inspect the HTTP traces?
What is the content of that payload before it gets stringified ... is it valid JSON ?