Which project does this relate to?#
Create Tanstack App
Describe the bug#
Creating a new app using @tanstack/cli@latest create app --package-manager bun --add-ons tanstack-query creates a faulty app
Your Example Website or App#
https://stackblitz.com/~/github.com/Lighno/tanstack-repro
Steps to Reproduce the Bug or Issue#
- Create a new app using
@tanstack/cli@latest create app --add-ons tanstack-query
- Run the dev command
- Go to the site
Expected behavior#
No import errors
Screenshots or Videos#
No response
Platform#
- OS: Linux
- Browser: Chrome, Safari, Firefox
- Version: [e.g. 91.1]
Additional context#
I think the following commit 46a49033547f7e6c9905f4e94cca07ce0988f63a is what caused this, I'd be happy to make the fix if someone could explain what the necessary change is as I'm not sure if you need to change the config from being a provider to something else or remove the provider section from the addon config
Replace above code with current code in
root-provider.tsxfile