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

admin page is not usable: no js and css #24

Open
yytsui opened this issue Feb 7, 2018 · 2 comments
Open

admin page is not usable: no js and css #24

yytsui opened this issue Feb 7, 2018 · 2 comments

Comments

@yytsui
Copy link

yytsui commented Feb 7, 2018

Following the step Installation using docker compose,
the app site does work well. However, the js and css in admin page are not accessable form browser,
I tried both Chrome and Firefox. Here is the erroe message from Chrome debug console:

Refused to apply style from '' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
admin:1 Refused to apply style from 'http://127.0.0.1:3000/admin/lte/bootstrap/css/bootstrap.min.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
admin:1 Refused to apply style from 'http://127.0.0.1:3000/admin/lte/dist/css/skins/_all-skins.min.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
admin:1 Refused to apply style from 'http://127.0.0.1:3000/admin/codemirror/lib/codemirror.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
admin:1 Refused to apply style from 'http://127.0.0.1:3000/admin/lte/dist/css/AdminLTE.min.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
admin:1 Refused to apply style from 'http://127.0.0.1:3000/admin/codemirror/lib/codemirror.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
admin:25 GET http://127.0.0.1:3000/admin/codemirror/mode/javascript/javascript.js net::ERR_ABORTED
admin:22 GET http://127.0.0.1:3000/admin/codemirror/lib/codemirror.js net::ERR_ABORTED
admin:218 GET http://127.0.0.1:3000/admin/lte/plugins/jQuery/jquery-2.2.3.min.js net::ERR_ABORTED
admin:222 GET http://127.0.0.1:3000/admin/lte/plugins/slimScroll/jquery.slimscroll.min.js net::ERR_ABORTED
admin:220 GET http://127.0.0.1:3000/admin/lte/bootstrap/js/bootstrap.min.js net::ERR_ABORTED
admin:224 GET http://127.0.0.1:3000/admin/lte/plugins/fastclick/fastclick.js net::ERR_ABORTED
admin:226 GET http://127.0.0.1:3000/admin/lte/dist/js/app.min.js net::ERR_ABORTED
admin:25 GET http://127.0.0.1:3000/admin/codemirror/mode/javascript/javascript.js net::ERR_ABORTED
admin:218 GET http://127.0.0.1:3000/admin/lte/plugins/jQuery/jquery-2.2.3.min.js net::ERR_ABORTED
admin:220 GET http://127.0.0.1:3000/admin/lte/bootstrap/js/bootstrap.min.js net::ERR_ABORTED
admin:222 GET http://127.0.0.1:3000/admin/lte/plugins/slimScroll/jquery.slimscroll.min.js net::ERR_ABORTED
admin:224 GET http://127.0.0.1:3000/admin/lte/plugins/fastclick/fastclick.js net::ERR_ABORTED
admin:226 GET http://127.0.0.1:3000/admin/lte/dist/js/app.min.js net::ERR_ABORTED
admin:230 Uncaught ReferenceError: $ is not defined
at admin:230
(anonymous) @ admin:230
mixpanel-2-latest.min.js:9 Mixpanel error: "mixpanel" object not initialized. Ensure you are using the latest version of the Mixpanel JS Library along with the snippet we provide.
U @ mixpanel-2-latest.min.js:9
(anonymous) @ mixpanel-2-latest.min.js:117
(anonymous) @ mixpanel-2-latest.min.js:118
(anonymous) @ mixpanel-2-latest.min.js:118
(anonymous) @ mixpanel-2-latest.min.js:119

Screenshot in Chrome:
screen shot 2018-02-07 at 2 44 46 pm

Screenshot in Firefox:
screen shot 2018-02-07 at 2 45 24 pm

@CREEATION
Copy link

Bump. Still an issue.

@cigolpl
Copy link
Member

cigolpl commented May 24, 2018

Hello, @yytsui, @CREEATION. Couldn't believe someone is using / want to use this library. I've sent a patch in the last commit. Haven't tested with docker compose now but it works with standard installation / usage, so for docker should be also ok.

Btw: I am experimenting with many similar solution around software and data (searching, filtering, recommendation) and if you tell me what do you like the most about this kind of software, then it could help me with making it better

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

3 participants