josemarluedke / glimmer-apollo

Ember and Glimmer integration for Apollo Client.
https://glimmer-apollo.com
MIT License
38 stars 14 forks source link

Vite: `Uncaught TypeError: setHelperManager is not a function` with the standard environment-ember #97

Open johanrd opened 3 days ago

johanrd commented 3 days ago

Repository for reproduction: https://github.com/johanrd/glimmer-apollo-vite • Run pnpm start and open your localhost. • See error in console:

Vite: Uncaught TypeError: `setHelperManager `is not a function

I guess this is related to @lifeart's issue with glimmer-x https://github.com/josemarluedke/glimmer-apollo/issues/45, but I am not sure how to bypass the error with the environment-ember, as environment-ember is not imported directly there (as it is with glimmer-x).

I am not even sure if this is related to SSR: The reproduction is basically created by running @NullVoxPopuli's great little ember-vite-blueprint (npx ember-cli@latest new glimmer-apollo-vite --blueprint @nullvoxpopuli/ember-vite-app --pnpm --typescript) + the steps in the glimmer-apollo readme.

Thanks, johan