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

jsglue.js is missing #34

Open
tomasantunes opened this issue Aug 4, 2022 · 4 comments
Open

jsglue.js is missing #34

tomasantunes opened this issue Aug 4, 2022 · 4 comments

Comments

@tomasantunes
Copy link

I installed Flask-JSGlue2 through pip and I get the following error:

GET https://domain.com/jsglue.js net::ERR_ABORTED 500 (INTERNAL SERVER ERROR)

When I click it it takes me to the script tag which is the following:

<script src="/jsglue.js" type="text/javascript"></script>

I tried changing the JSGLUE_JS_PATH constant but it didn't help.

@Gbillington1
Copy link

I'm getting the same issue in my network tab, and a template error from jijna: jinja2.exceptions.TemplateNotFound: jsglue/js_bridge.js

@SatGarcia
Copy link

@Gbillington1 I had the same issue with missing template. I had to manually create a jsglue folder with my templates directory and copy the js_bridge.js file (which I had to grab from GitHub) there. After that, the issue went away.

@tomasantunes
Copy link
Author

Thanks. That solves it.

@eanon
Copy link

eanon commented Jun 14, 2023

Solved it a more automated way in this PR: #35

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

4 participants