jamalx31 / cra-extensions-boilerplate

a boilerplate to use create-react-app to build chrome extensions without eject
45 stars 7 forks source link

How to configure TS? #2

Open lifeeric opened 4 years ago

lifeeric commented 4 years ago

Hey, First of all, Thanks for your repo! is there any way to configure TypeScript with this!

jamalx31 commented 4 years ago

I think the fastest way to do this is to use create-react-app to generate a new project with TS and then follow the steps from the tutorial to make it work for extensions.

I will create a new beach for TS as soon as I can

lifeeric commented 4 years ago

Thanks that helped me, but now I'm getting this issue when I click on the popup icon

WebSocket connection to 'ws://ihblleiljlbcemcnbngoidmlaakfboni/sockjs-node' failed: Error in connection establishment: net::ERR_NAME_NOT_RESOLVED
jamalx31 commented 4 years ago

that's another issue i need to fix, the app is trying to connect vis socket to webpack dev server which we don't need since it's served via chrome.

But you can ignore it for now it shouldn't affect your development flow