Loving the dev experience! However I seem to have hit an interesting issue. This can be a low priority issue for me as I have a work-around but I wanted to at least report it.
My app is an electron-forge app from template react/typescript.
There is some XSLT processing in the app from a third party CDA viewer tool, which performs a fetch of an XSLT file. During the fetch I am getting an error (see last error in the issue). I researched it and found a few similar issues. Mostly: #94
Just hit this same issue with application/xml as the mime type when I was trying to use passthrough
If I place it here in .compilerc:
{
"env": {
"development": {
"application/xml": {
"passthrough": true
},
Error: Found compiler settings for missing compiler: application/xml
But if I place it at the root level:
{
"application/xml": {
"passthrough": true
},
"env": {
"development": {
"text/typescript": {
There is no startup error but there is also no effect on the .xslt file I am fetching with a REST call in the code.
The actual REST fetch results in the following error:
Failed to compile /PATH/src/ccdviewer/cda.xsl: Compiling /PATH/src/ccdviewer/cda.xsl resulted in a MIME type of application/xml, which we don't know how to handle
Error: Compiling /PATH/src/ccdviewer/cda.xsl resulted in a MIME type of application/xml, which we don't know how to handle
at /PATH/node_modules/electron-compile/lib/compiler-host.js:431:17
at Generator.next (<anonymous>)
...clipped...
My work-around was to simply rename the file I am fetching from .xsl to some other extension that electron doesn't really care about.