-
Notifications
You must be signed in to change notification settings - Fork 79
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
In certain cases, dbt-docs don't render in 0.20.0 #207
Comments
Hey there, chiming in with the same issue. 0.19.1 works like a charm, 0.20.0 fails to render in the browser with the same error. I've been over the documentation YAML with a fine toothed comb but haven't found what triggers this yet. Everything else works, it's just the docs site that does not. |
Thanks for the report @jaypeedevlin!
I am decidedly not a front-end developer, but I think the move here is to run the docs site in development mode, which includes source maps that you can leverage in browser. Effectively, that looks like:
I'm happy to help out here as well, if you feel comfortable sharing the artifacts privately |
Thanks to @JGrubb for sharing some error-prone artifacts! I was able to identify that the error is coming from this line: dbt-docs/src/app/services/project_service.js Line 206 in ff34ee1
This is related to #183, which moved where the There's a larger question here, too, about the ideal display for In any case, what we really want is to avoid crashing the entire docs site. I think one immediate fix is to change this: dbt-docs/src/app/services/project_service.js Line 201 in ff34ee1
To get the last-indexed item, regardless of whether there's one or two: var model = depends_on[depends_on.length - 1]; As long as there's some model/source/snapshot/seed that the When I reload the docs site with the same artifacts and that one line changed, everything works perfectly. |
Well, I at least found what the cause was from my set of artifacts. I had some prewritten relationship tests for future models that did not yet exist — I thought I had commented them all out, but I missed one. Commenting that out fixed the issue for me! |
PEBKAC, was still on 0.19.1, they still fail in 0.20.0 so I'm totally stumped what I have done differently than every other DBT user. |
Describe the bug
Upon first loading the docs, I get a javascript error and the docs don't load. Per slack this is happening to at least one other person.
Steps To Reproduce
These are not full reproduction steps — I have a project where this happens on 0.20.0 but also projects where it does not. I'm unable to work out what's unique about the project where this 'bug' happens. This is how to reproduce on the project where it breaks:
dbt docs serve
dbt docs generate
(if I run this command using 0.19.1 the docs load the 0.20.0 generated files without issue)Expected behavior
The docs to load 🙂
Screenshots and log output
The following also appears in my terminal:
The output of
dbt --version
:Additional context
If there's a way I can install the unminified JS locally so I can provide you with a more verbose error, I'm willing to help!!
The text was updated successfully, but these errors were encountered: