antonio-tg opened a new issue, #29883:
URL: https://github.com/apache/superset/issues/29883

   ### Bug description
   
   I have Superset 2.1.3 in production and I would like to upgrade to 4.0.2, 
however a feature that works great in 2.1.3 has been deprecated in 4.0.2, the 
feature is the option to use JS code in maps, that is:
   
   ENABLE_JAVASCRIPT_CONTROLS
   
   Therefore I would like your help to find an alternative and be able to solve 
this problem.
   
   ### How to reproduce the bug
   
   Upgrade from Superset 2.1.3. to 4.0.2
   
   ### Screenshots/recordings
   
   The map look like this in superset 2.1.3:
   
   
![mapa_normal](https://github.com/user-attachments/assets/a7cbdcb1-8e74-498c-942e-b54693b26807)
   
   In the newest supeset look equal, but when I place the mouse cursor over the 
map this happend:
   
   
![error](https://github.com/user-attachments/assets/0fcd7cc8-3a02-40db-b444-f9a0f77a34b8)
   
   I mean this:
   ```log
   An error occurred while rendering the visualization: Error: Minified React 
error #31; visit 
https://reactjs.org/docs/error-decoder.html?invariant=31&args[]=EvalError%3A%20Refused%20to%20evaluate%20a%20string%20as%20JavaScript%20because%20'unsafe-eval'%20is%20not%20an%20allowed%20source%20of%20script%20in%20the%20following%20Content%20Security%20Policy%20directive%3A%20%22script-src%20'self'%20'strict-dynamic'%20'nonce-7ZywRWntR57icaAOAZiKN_Qp24uqef_N'%22.%0A&args[]=
 for the full message or use the non-minified dev environment for full errors 
and additional helpful warnings.
   ```
   
   
   ### Superset version
   
   4.0.2
   
   ### Python version
   
   3.9
   
   ### Node version
   
   16
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   This feature is really important to my users so I'll be so thankful if you 
could help me with this.
   
   ### Checklist
   
   - [X] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [X] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [X] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to