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

Docusaurus swallow errors inside of siteConfig.js #205

Closed
vjeux opened this issue Nov 1, 2017 · 2 comments
Closed

Docusaurus swallow errors inside of siteConfig.js #205

vjeux opened this issue Nov 1, 2017 · 2 comments
Labels
bug An error in the Docusaurus core causing instability or issues with its execution

Comments

@vjeux
Copy link
Contributor

vjeux commented Nov 1, 2017

If there's a syntax error (and I believe it anything throws) in siteConfig.js, then the error is completely swallowed:

yarn start
Using globally installed version of Yarn
yarn run v1.2.0
warning package.json: No license field
$ docusaurus-start --port 8082
Checking if port 8082 is free...
Starting Docusaurus server on port 8082...
  Done in 1.60s.

would be nice to not swallow them, it makes for a bad developer experience :)

@vjeux
Copy link
Contributor Author

vjeux commented Nov 1, 2017

Also, siteConfig.js is not reloaded automatically when I refresh a page. I need a hard restart to pick up the changes.

@ericnakagawa ericnakagawa added the bug An error in the Docusaurus core causing instability or issues with its execution label Dec 7, 2017
@JoelMarcey
Copy link
Contributor

@vjeux I believe a49787a fixes your original issue.

And we have another feature request issue re: reloading automatically.

Please reopen if you find this is not the case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error in the Docusaurus core causing instability or issues with its execution
Projects
None yet
Development

No branches or pull requests

3 participants