跳到主要内容
ArcBlock Community

QR generator-Breaking down when uploaded to official store.

Twelve
开发者
blocklet-serverbugneed-context

Upon having received approval to upload my QR generator APP to the main store, it looks like something is malfunctioning.

When uploaded to the test store, everything was working properly. But now it seems to have broken down. Losing the some styles and function.

The first image is of the app running local, and what it looked like in the test store. The second image is what it looks like when launched from official store.

Is this a bug or something that I'm doing incorrectly?

Screen Shot 2024-11-15 at 1.33.21 PM.png

Screen Shot 2024-11-15 at 1.33.25 PM.png

6 条回复

Brain Titan22个月前

Could check the CSS code. since it works fine locally, maybe make a zip file again of everything, make a new release & re-upload to store

Just a thought before team replies, might be a quick fix

wangshijun22个月前

Yes, please try use chrome dev tools to inspect your page, do a refresh and check if there are errors when loading the css. seems the css is not loading.

Twelve22个月前(edited)

Thank you. I reuploaded to test and main store and found this.

Both test and main store versions work fine when launched in builders playground. The App also works fine when launched by itself from the main store.

But main store does not work correctly when launched from my Daily Arc blocklet.

this is the error im getting from dev console.

[Error] Failed to load resource: the server responded with a status of 404 () (index.437dc612.js, line 0)

[Error] Refused to execute https://thedailyarc.did.life/index.437dc612.js as script because "X-Content-Type-Options: nosniff" was given and its Content-Type is not a script MIME type.

[Error] Failed to load resource: the server responded with a status of 404 () (index.1303bb05.css, line 0)

Image 1- Builders Playground-launched from test score- Works

Image 2-Builders Playground-launched from main store-Works

Image 3- From my Daily Arc Blocklet- launched from main store-Doest work.

Image4- Launched by itself from the main store. -Workds

Screen Shot 2024-11-15 at 4.01.18 PM.png

Screen Shot 2024-11-15 at 4.01.29 PM.png

Screen Shot 2024-11-15 at 4.01.36 PM.png

Screen Shot 2024-11-15 at 4.09.22 PM.png

Twelve22个月前

I also just launched a pages kit, from the main store, in builders play ground. I then launched the QR app from that blocklet and it came up like this.

So it seems that the problem is launching this from an existing blocklet.

Screen Shot 2024-11-15 at 4.16.54 PM.png

wangshijun22个月前

Seems your blocklet is loading js file from absolute path? all blocklets should load js/css/image files from relative path (relative to its mount point)

image.png

wangshijun22个月前

According to your test case: your blocklet works when load from "/", breaks when load from "/xxx", please check js file reference in your bundle or source code.

回复