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

building static site faild #209

Closed
azl397985856 opened this issue May 24, 2016 · 6 comments
Closed

building static site faild #209

azl397985856 opened this issue May 24, 2016 · 6 comments

Comments

@azl397985856
Copy link

azl397985856 commented May 24, 2016

i wanna build static site by following the steps you provided in the doc, but i got a error when i try to run it on the python simpleHTTPServer
image

stacktrace:
Error: Invalid regular expression: /[a-zA-Z邪-褟袗-褟]+[*]?/: Range out of order in character class
e.exports
file:///E:/ltcrm/trunk/ltcrm-components/ltcrm-components-static/static/preview.bundle.js:101:6351
Object.v [as registerLanguage]
file:///E:/ltcrm/trunk/ltcrm-components/ltcrm-components-static/static/preview.bundle.js:90:18724
Object.
file:///E:/ltcrm/trunk/ltcrm-components/ltcrm-components-static/static/preview.bundle.js:90:26117
t
file:///E:/ltcrm/trunk/ltcrm-components/ltcrm-components-static/static/preview.bundle.js:1:107
e.__esModule.default
file:///E:/ltcrm/trunk/ltcrm-components/ltcrm-components-static/static/preview.bundle.js:90:10351
Object.
file:///E:/ltcrm/trunk/ltcrm-components/ltcrm-components-static/static/preview.bundle.js:90:10430
t
file:///E:/ltcrm/trunk/ltcrm-components/ltcrm-components-static/static/preview.bundle.js:1:107
Object.
file:///E:/ltcrm/trunk/ltcrm-components/ltcrm-components-static/static/preview.bundle.js:90:10290
t
file:///E:/ltcrm/trunk/ltcrm-components/ltcrm-components-static/static/preview.bundle.js:1:107
Object.
file:///E:/ltcrm/trunk/ltcrm-components/ltcrm-components-static/static/preview.bundle.js:43:23569
image

@thani-sh
Copy link
Contributor

Hi @azl397985856
It looks like there's an error with the regular expression (error)

@azl397985856
Copy link
Author

but running successfully.

only when I try to build-static-site . something went really wrong

@azl397985856
Copy link
Author

azl397985856 commented May 25, 2016

image
i delete part of pages, then it works.
but i got messy code。 what am i doing wrong?

@azl397985856
Copy link
Author

azl397985856 commented May 25, 2016

ps:
I add< meta http-equiv="content-type" content="text/html; charset=UTF-8" /> 'tag

@azl397985856
Copy link
Author

azl397985856 commented May 25, 2016

maybe i found the reason.
Firstly, I shouldn't run as local file, it should be placed on the static server.
Secondly, I should add the tag< meta http-equiv="content-type" content="text/html; charset=UTF-8" />
so if you'd like to add this into your html template when running the shell 'build-storybook', it may help many other people like me, thanks(Now I must by manually adding this tag when i run the shell everytime )

@thani-sh
Copy link
Contributor

Hi @azl397985856
Thanks for all the info. I've just release v1.28.1 with the charset meta tag.
This should fix this issue.

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

No branches or pull requests

3 participants