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

Heroku bundling issues #199

Closed
MapZombie opened this issue Jan 13, 2020 · 2 comments
Closed

Heroku bundling issues #199

MapZombie opened this issue Jan 13, 2020 · 2 comments

Comments

@MapZombie
Copy link

Hi, I am having a similar issue with #110, it seems like script ordering problems. This is after pushing to a heroku app. However as localhost everything renders correctly and does not throw the same errors.
Has anybody run into script bundling issues this when deploying to Heroku?


Uncaught SyntaxError: Unexpected token '!'
dashboard.js:1000 Uncaught TypeError: $(...).jsGrid is not a function
    at creategrid (dashboard.js:1000)
    at dashboard.js:1069
creategrid @ dashboard.js:1000
(anonymous) @ dashboard.js:1069

jquery-3.4.1.min.js:2 Uncaught TypeError: $(...).sortable is not a function
    at HTMLDocument.<anonymous> (dashboard.js:59)
    at e (jquery-3.4.1.min.js:2)
    at t (jquery-3.4.1.min.js:2)
@abhisuri97
Copy link
Contributor

Are you seeing any other errors? Dashboard.js doesn't look like a dependency we have, so perhaps you should adjust app/assets.py to account for that file existing.

vendor_js = Bundle(

@abhisuri97
Copy link
Contributor

Closing unless there are any other issues (feel free to reopen as you see fit).

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