extend-chrome / ts-react-boilerplate

Chrome extension boilerplate with TypeScript and React
MIT License
70 stars 14 forks source link

When start the project, popup page is blank, Chrome reports error: process in not defined #2

Closed yaowang908 closed 3 years ago

yaowang908 commented 3 years ago

Google search terms

Process is not defined + rollup

Describe the bug

Start the project, load unpacked extension in Chrome. Click the extension, blank page shows up, and Chrome reports error: process is not defined.

How do we reproduce?

Start the project, load unpacked extension in Chrome. Click the extension.

Expected behavior

The actual popup and no error.

Actual behavior

Blank page

Screenshots

Please complete the following information:

Additional context

I actually fixed this problem by adding @rollup/plugin-replace. My code is here. Let me know if I should submit this PR.

atharva-bhange commented 3 years ago

Thanks a lot worked for me !! It would be great if you could create PR.

AmySteam commented 3 years ago

@yaowang908 Thanks for the PR 🎉 . Closing this issue.