squiggle icon indicating copy to clipboard operation
squiggle copied to clipboard

Next 14.2 Turbo

Open OAGr opened this issue 1 year ago • 2 comments

  • x is new feature

Description of suggestion or shortcoming:

It would be nice to be able to use Next Turbo for dev. I quickly tried it, but it gave a "modules not found" errors for the generated files. It's possible this error will be fixed soon, or that it would be feasible for us to get around this somehow.

OAGr avatar Apr 16 '24 19:04 OAGr

Some potentially related issues:

  • https://github.com/vercel/next.js/issues/63372
  • https://github.com/vercel/next.js/issues/63850

Output:



./packages/hub/src/components/GlobalSearch/index.tsx
Module not found: Can't resolve './src/__generated__/GlobalSearchQuery.graphql.ts'


https://nextjs.org/docs/messages/module-not-found



./packages/hub/src/groups/components/GroupCard.tsx
Module not found: Can't resolve './src/__generated__/GroupCard.graphql.ts'


https://nextjs.org/docs/messages/module-not-found



./packages/hub/src/groups/components/GroupList.tsx
Module not found: Can't resolve './src/__generated__/GroupList.graphql.ts'


https://nextjs.org/docs/messages/module-not-found



./packages/hub/src/models/components/ModelCard.tsx
Module not found: Can't resolve './src/__generated__/ModelCard.graphql.ts'


https://nextjs.org/docs/messages/module-not-found
...

OAGr avatar Apr 16 '24 19:04 OAGr

https://nextjs.org/docs/architecture/turbopack#unsupported-features lists "Relay Transforms" in currently unsupported features, which means that we're out of luck on this for Hub until either:

  • this is fixed in turbo (probably not soon)
  • or we migrate away from Relay with #3154

I'm not sure why --turbo is broken in packages/website too.

berekuk avatar May 06 '24 17:05 berekuk