-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
"utils.getPath is not a function" on v1.2.0. #759
Comments
@yansern Hi. Thank you for the report. Did you upgrade from a previous version of Docusaurus or was this a fresh install? |
@JoelMarcey I did an upgrade. Changing back to 1.1.5 and I can run again! I’ll dig into HeaderNav.js later on 1.2.0 to see if I can find out what exactly went wrong. |
Hi @yansern - can you provide me the exact commands you used when you made the update so I can try to reproduce here? Were you on 1.1.5 when you made this upgrade? |
I have same problem. "dependencies": {
- "docusaurus": "1.1.5"
+ "docusaurus": "1.2.0"
}, $ docusaurus-start
Docusaurus server started on port 3000
LiveReload server started on port 35729
TypeError: utils.getPath is not a function |
I used |
Very interesting. Thanks. What version were you upgrading from? And did you just run |
Sorry..., I solved this with running Thanks, @JoelMarcey !! |
@shoota 👍 Great! Let me know if you can land userdive/agent.js#641 successfully. |
I am going to close this out now. https://docusaurus.io/docs/en/next/installation#updating-your-docusaurus-version should hopefully provide the right way to upgrade. |
jfyi, for me reason was babel cache. |
Thanks @anru ... 👍 Are you willing to create a PR to update the installation documentation to add your findings as a note? Adding a note to https://github.com/facebook/Docusaurus/blob/master/docs/getting-started-installation.md#updating-your-docusaurus-version |
for details see facebook#759
@JoelMarcey done |
Is this a bug report?
Yes
Have you read the Contributing Guidelines on issues?
Yes
Environment
NodeJS v8.11.2 (LTS)
Yarn v1.7.0
Docusarus v1.2.0
Steps to Reproduce
^1.2.0
.yarn install
to install new version.yarn start
.Then you'll get:
TypeError: utils.getPath is not a function at HeaderNav.makeLinks (C:/_PATH_REMOVED_/node_modules/docusaur us/lib/core/nav/HeaderNav.js:196:15)
The text was updated successfully, but these errors were encountered: