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

Error: path.replace is not a function #3

Open
jonathantneal opened this issue Sep 11, 2020 · 2 comments
Open

Error: path.replace is not a function #3

jonathantneal opened this issue Sep 11, 2020 · 2 comments

Comments

@jonathantneal
Copy link

I have started seeing the following error.

error - ./node_modules/@hashicorp/octavo/__octavo_components.js
TypeError: path.replace is not a function

I have removed node_modules and started the project over. I have also inspected that file, which is nearly empty with the following contents:

// this import is always intercepted by a loader
module.exports = {}
@jonathantneal
Copy link
Author

The error is caused whenever a docs.mdx file has been created that is read by Octava, but it does not yet contain the componentName in its front matter.

@jescalan
Copy link
Contributor

Fair, there should be a better error here

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

2 participants