Open kdembler opened 6 months ago
This is probably due to some babel dependency errors inside the graphql tools I have opened an issue on their repo: https://github.com/ardatan/graphql-tools/issues/6252 The error is fixed on the babel release. It now start to appear on the master branch which is very strange
One solution to this is to apparently run the following sequence:
rm -fr node_modules/
rm -fr query-node/node_modules/
rm -fr query-node/codegen/node_modules/
yarn build:packages
That is the solution I always use when this issue pops up. Generally it happens when I'm switching branches often where there might be different graphql dependencies.
If you look at the query-node build script: https://github.com/Joystream/joystream/blob/master/query-node/build.sh You will observe codegen dependencies are treated a bit differently and we do some weird build steps to keep the main workspace dependencies different than codegen dependencies. This was necessary in the past, maybe not so much now that we have both using relatively the same versions..
Perhaps we can look into it in more detail
After this PR: https://github.com/Joystream/joystream/pull/5157