yaeda / inkdrop-prettier

https://my.inkdrop.app/plugins/prettier
MIT License
9 stars 1 forks source link

Plugin not loading: unsafe-eval is not allowed #4

Open antoniovillavicencio opened 3 years ago

antoniovillavicencio commented 3 years ago

Hi, I'm getting the following error while trying to load this plugin in InkDrop:

EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' 'unsafe-inline' blob:".

I'm using plugin version 1.3.0 and Inkdrop version 5.4.3

craftzdog commented 3 years ago

It's been working fine with recent Inkdrop versions, so it should have something to do with prettier itself. I found that downgrading prettier to 2.3.0 solved the issue.

hnordt commented 3 years ago

Started to break with Prettier v2.4.0.