quantified-uncertainty / squiggle

An estimation language
https://squiggle-language.com
MIT License
148 stars 22 forks source link

Next 14.2 Turbo #3185

Open OAGr opened 2 months ago

OAGr commented 2 months ago

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 2 months ago

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
...
berekuk commented 2 months ago

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:

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