Hi Team, I added a new entity to my local fork of...
# troubleshoot
l
Hi Team, I added a new entity to my local fork of datahub and despite trying to make it as simple as possible I'm having a hard time. I managed to follow all the steps in the guide for extending the metadtaa model here: https://datahubproject.io/docs/metadata-modeling/extending-the-metadata-model. After that I followed the GraphQL guide: https://datahubproject.io/docs/datahub-graphql-core. However, now, when I try to rebuild datahub with the command
./gradlew quickstartDebug --stacktrace -x yarnTest -x yarnLint
I get an error that I don't know how to deal with. Including the the error message(s) below. Any idea how I can find out what I did wrong?
Copy code
> Task :datahub-web-react:yarnGenerateyarn run v1.22.0
$ graphql-codegen --config codegen.yml0s]
(node:4132) ExperimentalWarning: stream/web is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
[15:13:03] Parse configuration [started]]
[15:13:03] Parse configuration [completed]
[15:13:03] Generate outputs [started]
[15:13:03] Generate src/types.generated.ts [started]
[15:13:03] Generate to src/ (using EXPERIMENTAL preset "near-operation-file") [started]
[15:13:03] Load GraphQL schemas [started]
[15:13:03] Load GraphQL schemas [started]
[15:13:03] Load GraphQL schemas [failed]
[15:13:03] → Failed to load schema
[15:13:03] Generate to src/ (using EXPERIMENTAL preset "near-operation-file") [failed]
[15:13:03] → Failed to load schema
[15:13:03] Load GraphQL schemas [failed]
[15:13:03] → Failed to load schema
[15:13:03] Generate src/types.generated.ts [failed]
[15:13:03] → Failed to load schema
[15:13:03] Generate outputs [failed]
Something went wrong
error Command failed with exit code 1.
info Visit <https://yarnpkg.com/en/docs/cli/run> for documentation about this command.
> :datahub-web-react:yarnGenerate
> Task :datahub-web-react:yarnGenerate FAILED
> :datahub-web-react:yarnGenerate
FAILURE: Build failed with an exception.]

* What went wrong:
Execution failed for task ':datahub-web-react:yarnGenerate'.
> Process 'command '/mnt/c/Users/dries528/Documents/Code/datahub_fresh/datahub/datahub-web-react/.gradle/yarn/yarn-v1.22.0/bin/yarn'' finished with non-zero exit value 1

* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
c
I am getting many yarn/ react errors on a completely new repo I downloaded as well. I will try the exclusions you are running to see if I get a quickstartDebug to complete successfully. Here’s an example of what I see. 2023-03-28T152659.718-0500 [ERROR] [system.err] at src/app/entity/shared/containers/profile/__tests__/EntityProfile.test.tsx255 2023-03-28T152659.719-0500 [ERROR] [system.err] at Object.<anonymous> (src/app/entity/shared/containers/profile/__tests__/EntityProfile.test.tsx241) 2023-03-28T152659.720-0500 [ERROR] [system.err]
I know I don’t have any modifications, but this worked for me just now: ./gradlew clean datahub docker nuke docker system prune --all --volumes --force ./gradlew quickstartDebug --stacktrace -x yarnTest -x yarnLint
There is also this option on the docker nuke datahub docker nuke --keep-data
l
Thanks @cuddly-butcher-39945 I just tried those, but unfortunately I still get the same error. I think I probabaly made some mistake when adding a new entity, but I don't know how to find out where that could be.
a
Hi @limited-refrigerator-50812, this could also happen if you didn’t build all the new entities before trying to test, https://datahubproject.io/docs/developers has info on build commands and https://datahubproject.io/docs/docker/development has some info on configuring modules etc for a test build