redux-devtools icon indicating copy to clipboard operation
redux-devtools copied to clipboard

How to resolve `unsafe-eval` issues for extension development

Open jonahlibrach opened this issue 3 years ago • 10 comments

I'm getting some image

How do I resolve these issues when building the app with webpack? Is it a simple modification to the dev.config.babel.js?

Albeit unsuccessfully, I tried to follow what was recommended here: https://stackoverflow.com/questions/48047150/chrome-extension-compiled-by-webpack-throws-unsafe-eval-error

Has anyone encountered this before? How to move forward and get it working?

jonahlibrach avatar Jan 23 '22 05:01 jonahlibrach

Try un-commenting this line in the base config. I don't have time to check if that works right now, but I'll take a look later.

Methuselah96 avatar Jan 23 '22 14:01 Methuselah96

Doing that caused this: image

jonahlibrach avatar Jan 23 '22 21:01 jonahlibrach

@Methuselah96 did you have any chance to check what's going on, I'm getting the same error

hecjhs avatar Jan 30 '22 02:01 hecjhs

Is this causing the DevTools to not work? I get the first error when I go to GitHub with the dev build, but the DevTools still seem to work for sites that have the extension enabled.

Methuselah96 avatar Feb 01 '22 02:02 Methuselah96

@jonahlibrach Also, just to confirm, are you using Yarn? This repository only works with Yarn.

Methuselah96 avatar Feb 01 '22 02:02 Methuselah96

@jonahlibrach @hecjhs Were you able to check whether this was causing the DevTools to not work?

Methuselah96 avatar Feb 07 '22 23:02 Methuselah96

I'm going to go ahead and close this, but feel free to reply if you have any new information to help reproduce this issue and I can reopen it.

Methuselah96 avatar Feb 17 '22 22:02 Methuselah96

@Methuselah96 I'm still having issues with this, can you provide documentation on how I should run this on dev mode?

hecjhs avatar Mar 01 '22 22:03 hecjhs

Is this causing the DevTools to not work? I get the first error when I go to GitHub with the dev build, but the DevTools still seem to work for sites that have the extension enabled.

Methuselah96 avatar Mar 02 '22 00:03 Methuselah96

yes, when I load the extension on dev mode as is suggested here, the DevTools is not working, so I've tried to change this line as you suggested, but I have no luck with that

hecjhs avatar Mar 02 '22 00:03 hecjhs