Building turborepo with keystonejs .
Steps:
// create turborepo
npx create-turbo@latest my-monorepo
cd my-monorepo
// add keystone to turborepo
cd apps
npm init keystone-app my-keystone-app
cd my-keystone-app
npm run build
Here is the build process stuck with following screen: enter image description here
And then a bunch of errors ( should not be imported outside of pages/_document) for every model, ending like this: enter image description here
How do I fix this error and let Keystone run inside turborepo?
I tried to move the keystone folder outside of turborepo (the same folder), and it worked fine. Build works.
But even the blank keystone inside turborepo becomes dead after node modules are installed.
node 18.18.0
"@keystone-6/auth": "^7.0.2", "@keystone-6/core": "^5.7.2", "@keystone-6/fields-document": "^8.0.2",