F0rce / ace

Ace Editor for Vaadin 14 & 23
MIT License
27 stars 13 forks source link

Themes and modes don't work in production #15

Closed lipisak closed 3 years ago

lipisak commented 3 years ago

Hi @F0rce, We are using the most recent version of the Ace editor and we noticed that the themes and modes don't work.

We haven't noticed it at first place as it works correctly in dev mode, but it doesn't work in production.

It seems to be issue with assets loading as there are information in JS console:

Failed to load resource: the server responded with a status of 500 ()
Refused to execute https://app.cnc.dev.solar.ms/ace-builds/src-min-noconflict/theme-eclipse.js as script because "X-Content-Type-Options: nosniff" was given and its Content-Type is not a script MIME type.

Before we upgraded to version 1.2.1 everything was ok. Unfortunately the version 1.0.1 is no available anymore so we can't revert back to it.

Could you please check it out?

Best regards, JS

lipisak commented 3 years ago

Hi @F0rce , it works with newer Vaadin (14.6.5). So I close this issue.

JS