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

Build doesn't work #851

Closed
peroperje opened this issue Mar 1, 2018 · 1 comment
Closed

Build doesn't work #851

peroperje opened this issue Mar 1, 2018 · 1 comment

Comments

@peroperje
Copy link

Hello.
I use react-styleguidist v6.2.5 and everything works fine in in the development mode.
But when I build documentation (styleguide:build) and open styleguide/index.html I got error :

bundle.1d18c5ca.js:1 Uncaught SyntaxError: Invalid regular expression: /[ªµºÀ-ÖØ-öø-�ˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-�Ҋ-ԯԱ-Ֆՙա-և�-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿ�ܒ-ܯ�-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽ�क़-ॡॱ-ঀঅ-ঌ��ও-নপ-রলশ-হঽৎড়�য়-ৡৰৱৼਅ-ਊ��ਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-��-ઑઓ-નપ-રલળવ-હઽ�ૠૡૹଅ-ଌ��ଓ-ନପ-ରଲଳଵ-ହଽଡ଼�ୟ-ୡୱஃஅ-ஊஎ-�ஒ-கஙசஜஞடணதந-பம-ஹ�అ-ఌఎ-�ఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-�ಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-�ഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆ�-ะาำเ-ๆ�ຂຄງຈຊ�ດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿ�-��-�����-��-�ႎႠ-ჅჇ��-ჺჼ-ቈቊ-��-ቖቘቚ-�በ-ኈኊ-��-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-�ጒ-ጕጘ-�ᎀ-�Ꭰ-��-��-ᙬᙯ-ᙿ�-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ�-��-��-�ក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞ�-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣ�-�ᱚ-ᱽᲀ-ᲈᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-�ἠ-ὅὈ-��-ὗὙὛ�Ὗ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌ�-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ���-ₜℂℇℊ-ℓℕ℘-�ℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎ�-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼�-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄮㄱ-ㆎㆠ-ㆺㇰ-ㇿ�-䶵一-鿪ꀀ-ꒌ�-ꓽꔀ-ꘌ�-ꘟꘪꘫꙀ-ꙮꙿ-�ꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞮꞰ-ꞷꟷ-�ꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲ�ꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-�ꫠ-ꫪꫲ-ꫴ�-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗ�ײַ-ﬨשׁ-זּטּ-לּמּנּ�ףּפּצּ-ﮱﯓ-ﴽ�-�ﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Z�-zヲ-하-ᅦᅧ-�ᅭ-ᅲᅳ-ᅵ]/: Range out of order in character class
    at new RegExp (<anonymous>)
    at Object../node_modules/buble/node_modules/acorn/dist/acorn.es.js (bundle.1d18c5ca.js:1)
    at __webpack_require__ (bundle.1d18c5ca.js:1)
    at Object.<anonymous> (bundle.1d18c5ca.js:1)
    at Object../node_modules/buble/dist/buble-browser.es.js (bundle.1d18c5ca.js:1)
    at __webpack_require__ (bundle.1d18c5ca.js:1)
    at Object../node_modules/react-styleguidist/lib/rsg-components/Preview/Preview.js (bundle.1d18c5ca.js:1)
    at __webpack_require__ (bundle.1d18c5ca.js:1)
    at Object../node_modules/react-styleguidist/lib/rsg-components/Preview/index.js (bundle.1d18c5ca.js:1)
    at __webpack_require__ (bundle.1d18c5ca.js:1)
./node_modules/buble/node_modules/acorn/dist/acorn.es.js @ bundle.1d18c5ca.js:1
__webpack_require__ @ bundle.1d18c5ca.js:1
(anonymous) @ bundle.1d18c5ca.js:1
./node_modules/buble/dist/buble-browser.es.js @ bundle.1d18c5ca.js:1
__webpack_require__ @ bundle.1d18c5ca.js:1
./node_modules/react-styleguidist/lib/rsg-components/Preview/Preview.js @ bundle.1d18c5ca.js:1
__webpack_require__ @ bundle.1d18c5ca.js:1
./node_modules/react-styleguidist/lib/rsg-components/Preview/index.js @ bundle.1d18c5ca.js:1
__webpack_require__ @ bundle.1d18c5ca.js:1
./node_modules/react-styleguidist/lib/rsg-components/Playground/Playground.js @ bundle.1d18c5ca.js:1
__webpack_require__ @ bundle.1d18c5ca.js:1
./node_modules/react-styleguidist/lib/rsg-components/Playground/index.js @ bundle.1d18c5ca.js:1
__webpack_require__ @ bundle.1d18c5ca.js:1
./node_modules/react-styleguidist/lib/rsg-components/Examples/Examples.js @ bundle.1d18c5ca.js:1
__webpack_require__ @ bundle.1d18c5ca.js:1
./node_modules/react-styleguidist/lib/rsg-components/Examples/index.js @ bundle.1d18c5ca.js:1
__webpack_require__ @ bundle.1d18c5ca.js:1
./node_modules/react-styleguidist/lib/rsg-components/Section/Section.js @ bundle.1d18c5ca.js:1
__webpack_require__ @ bundle.1d18c5ca.js:1
./node_modules/react-styleguidist/lib/rsg-components/Section/index.js @ bundle.1d18c5ca.js:1
__webpack_require__ @ bundle.1d18c5ca.js:1
./node_modules/react-styleguidist/lib/rsg-components/Sections/Sections.js @ bundle.1d18c5ca.js:1
__webpack_require__ @ bundle.1d18c5ca.js:1
./node_modules/react-styleguidist/lib/rsg-components/Sections/index.js @ bundle.1d18c5ca.js:1
__webpack_require__ @ bundle.1d18c5ca.js:1
./node_modules/react-styleguidist/lib/rsg-components/StyleGuide/StyleGuide.js @ bundle.1d18c5ca.js:1
__webpack_require__ @ bundle.1d18c5ca.js:1
./node_modules/react-styleguidist/lib/rsg-components/StyleGuide/index.js @ bundle.1d18c5ca.js:1
__webpack_require__ @ bundle.1d18c5ca.js:1
./node_modules/react-styleguidist/lib/utils/renderStyleguide.js @ bundle.1d18c5ca.js:1
__webpack_require__ @ bundle.1d18c5ca.js:1
./node_modules/react-styleguidist/lib/index.js @ bundle.1d18c5ca.js:1
__webpack_require__ @ bundle.1d18c5ca.js:1
0 @ bundle.1d18c5ca.js:1
__webpack_require__ @ bundle.1d18c5ca.js:1
./node_modules/axios/index.js @ bundle.1d18c5ca.js:1
(anonymous) @ bundle.1d18c5ca.js:1
@peroperje
Copy link
Author

Sorry, it was my mistake.
I added custom template but I didn't add HtmlWebpackPlugin.

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

1 participant