-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
Fresh install will not start... Syntax Error #3199
Comments
Hi
Maybe try 1.14.4
As 1.14.5 was my first v1 release I might did something wrong. Will check
tomorrow
Le lun. 3 août 2020 à 20:06, Jeff Hawkins <notifications@github.com> a
écrit :
… 🐛 Bug Report
(A clear and concise description of what the bug is)
Followed steps in the Getting Started section (
https://docusaurus.io/docs/en/installation) to install version 1.14.5 of
Docusaurus.
node: v12.18.3
npm: 6.14.6
yarn: 1.22.4
To Reproduce
mkdir mysite
cd mysite
npx docusaurus-init
cd website
yarn start
Expected behavior
Expected the server to start so I could begin writing docs for my site.
Actual Behavior
yarn start fails with Syntax Error
$yarn start
yarn run v1.22.4
warning package.json: No license field
$ docusaurus-start
LiveReload server started on port 35729
Failed to start Docusaurus server: SyntaxError: Unexpected token (37:15)
error Command failed with exit code 1.
Your Environment
- Docusaurus version used: 1.14.5
node: v12.18.3
npm: 6.14.6
yarn: 1.22.4
macOS 10.14.5
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3199>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFW6PXA7PJGRBOOC4YOAJ3R634CHANCNFSM4PTSVCAA>
.
|
Same here |
Same here(( |
Same here. |
sorry for that will take a look asap |
Something weird I noticed is that on my computer, running But, the v2 site does not work due to a validation error:
Can you please tell me what's your package.json, and confirm you are on v1? Not only @jeffreyhawkins , but all of you please. If you are on v1, is the error |
I can confirm version 1.14.5 is in the package.json. They only error I see is |
package.json
the logs:
|
So, it is a bug introduced in this PR: #2331 The issue is on the Users page: The v1 parser is Babylon v6, and v6 does not support React fragments. Replacing the fragment by a div or I'm not going to upgrade Babylon in v1 but will release a fix soon so that v1 can be initialized without issue. Also will add some useful logs so that this kind of problem is easier to debug. Will be fixed in #3213 |
Release 1.14.6, seems to work now |
🐛 Bug Report
Followed steps in the Getting Started section (https://docusaurus.io/docs/en/installation) to install version 1.14.5 of Docusaurus.
node: v12.18.3
npm: 6.14.6
yarn: 1.22.4
To Reproduce
mkdir mysite
cd mysite
npx docusaurus-init
cd website
yarn start
Expected behavior
Expected the server to start so I could begin writing docs for my site.
Actual Behavior
yarn start fails with Syntax Error
$yarn start
yarn run v1.22.4
warning package.json: No license field
$ docusaurus-start
LiveReload server started on port 35729
Failed to start Docusaurus server: SyntaxError: Unexpected token (37:15)
error Command failed with exit code 1.
Your Environment
node: v12.18.3
npm: 6.14.6
yarn: 1.22.4
macOS 10.14.5
The text was updated successfully, but these errors were encountered: