quantified-uncertainty/squiggle

Next 14.2 Turbo

Opened this issue · 2 comments

OAGr commented
  • 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 commented

Some potentially related issues:

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
...

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.