Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/pluginWebUpdateNotice/web_version_by_plugin.json #39

Open
You00 opened this issue Aug 16, 2023 · 10 comments
Open

/pluginWebUpdateNotice/web_version_by_plugin.json #39

You00 opened this issue Aug 16, 2023 · 10 comments

Comments

@You00
Copy link

You00 commented Aug 16, 2023

API: /pluginWebUpdateNotice/web_version_by_plugin.json
The API request reported an error, What is the reason for this, and under what circumstances it will appear

@GreatAuk
Copy link
Owner

need more error info

@GreatAuk
Copy link
Owner

plugin will fetch /pluginWebUpdateNotice/web_version_by_plugin.json, make sure your server has this file.

.fetch(`${injectFileBase}${DIRECTORY_NAME}/${JSON_FILE_NAME}.json?t=${performance.now()}`)

@You00
Copy link
Author

You00 commented Aug 16, 2023

plugin will fetch /pluginWebUpdateNotice/web_version_by_plugin.json, make sure your server has this file.

.fetch(`${injectFileBase}${DIRECTORY_NAME}/${JSON_FILE_NAME}.json?t=${performance.now()}`)

Is this interface requesting a static resource file?

@GreatAuk
Copy link
Owner

plugin will fetch /pluginWebUpdateNotice/web_version_by_plugin.json, make sure your server has this file.

.fetch(`${injectFileBase}${DIRECTORY_NAME}/${JSON_FILE_NAME}.json?t=${performance.now()}`)

Is this interface requesting a static resource file?

Yes, fetch a static json file
image

@You00
Copy link
Author

You00 commented Aug 16, 2023

plugin will fetch /pluginWebUpdateNotice/web_version_by_plugin.json, make sure your server has this file.

.fetch(`${injectFileBase}${DIRECTORY_NAME}/${JSON_FILE_NAME}.json?t=${performance.now()}`)

Is this interface requesting a static resource file?

Yes, fetch a static json file image

ok,thanks!However, I don't see this static json file in the source code

@GreatAuk
Copy link
Owner

This json file is build by plugin after you build project.
https://github.com/GreatAuk/plugin-web-update-notification#what-was-changed

@You00
Copy link
Author

You00 commented Nov 14, 2023

Startup error after integrating into a vue project (error1:WebUpdateNotificationPlugin failed to inject the plugin into the HTML file. index.html not found; error2: WebUpdateNotificationPluginError: ENOENT: no such file or directory, access ), Is there a solution to this problem? @GreatAuk

@GreatAuk
Copy link
Owner

Need to reproduce information

@You00
Copy link
Author

You00 commented Nov 15, 2023

Need to reproduce information

Uploading 20231114164353.jpg…

@GreatAuk
Copy link
Owner

img 404

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants