I’ve tried to manually add the types as instructed here: App Bridge but it does not work neither, so it seems there might be an incompatibility somewhere.
Hey again @bakura10, sorry you’re encountering so many TS issues on this, happy to help. Can you try this?
npm i -D @shopify/app-bridge-ui-types, then in tsconfig.json set compilerOptions.types to include “@shopify/app-bridge-ui-types” (and keep any existing entries like “react”, “@shopify/app-bridge-types”).
Then reload your TS server/IDE. If that still doesn’t work, just let me know and I can definitely take a look at this with you?
Hey again @bakura10 Thanks for confirming! I’m sure you checked this already, but, I’d double check to see if the template is using tsconfig.app.json. You should be able to update that to this:
Then, I’d try importing once in your app entry there if you’re not doing so as well: // import '@shopify/app-bridge-ui-types';
If that doesn’t fix things, can you share your:
tsconfig.json or tsconfig.app.json (and tsconfig.node.json if present)
package.json devDependencies (TypeScript, @types/react, and @shopify/app-bridge-ui-types versions)
If it still fails after that, I’ll get in touch with some folks internally so we can keep digging. A minimal repro repo would help us escalate quickly, so just wanted to ask for the above (happy to set up a DM with you to investigate this further as well if you’d prefer to share that info there).
Install the app bridge types (@shopify/app-bridge-types - npm); I think this should be automatically added by the template btw, as the template itself uses those components.
As you can see, none of the ui-* components are recognized:
Hi @bakura10, thanks for sending this my way. I’ll try to replicate this on my end and then speak with some folks internally to get this looked at. Speak with you again soo as soon as I have more info as always