Does anyone have any tips for setting up InboxSDK in a React project generated by Create React App? It seems like the lack of clarity about how to proceed is a perennial issue:
Here is a question about how to structure the project to make InboxSDK available to the content script:
This one offers some guidance on initializing a React project (without CRA) but is out of date by almost 4 years:
I've been able to create an extension with CRA + Typescript + Tailwind that can be compiled by Webpack, and render React inside of the extension popup, but I continue to struggle to get InboxSDK to be recognized inside content.js. In the browser I consistently get an error thrown from content.js:
Uncaught ReferenceError: InboxSDK is not defined
I've attached a minimal example to demonstrate my current setup in the hopes that someone might be able to help me see something that I've been missing. Thanks!
PS: I haven't ejected the app, so I'm using CRACO to handle the webpack configuration.