'index.html' not loading in Chrome
Closed this issue · 3 comments
Tell us about the issue you are experiencing
I'm trying to open the index.html
file from Chrome, though I'm getting a permanent "Building pattern library..." message (pattern library doesn't get loaded).
Besides, I'm getting several error messages in the JS console:
The curious thing is that it works fine in Firefox.
What behaviour would you expect?
Pattern library should work properly for every browser (including Chrome), when openeing index.html
.
How can this issue be replicated?
npm install -g astrum
astrum init ./public/pattern-library
astrum new buttons/default
And then open astrum-demo/public/pattern-library/index.html
in Chrome browser.
Your environment
Platform: MacOS
OS Version: High Sierra 10.13.2
Node Version: 8.1.3
NPM Version: 5.6.0
Astrum Version: 1.9.5
Chrome Version: 63.0.3239.132 (Official Build) (64-bit)
Firefox Version: 57.0.4 (64-bit)
Hey @nadalsol, thanks for reaching out!
The Astrum front-end app is a single page Vue app. It is recommended that you run it in a web server environment though, to avoid issues like you mention.
Please see #140 where @NonPolynomial and @LukeMcGurdy made some great suggestions.
Hi @hankchizljaw , thanks for your answer.
I'm just pointing this out because I haven't found any documentation about "How to run Astrum", so it has been confusing to me.
What about adding it to your README.md file?
Congratulations for this great piece of work! 👏
Thanks @nadalsol!
I agree. I'll put an issue together to update the docs.