React Plugin Dev SystemJS transpiler

As mentioned in the FAQ I am getting this error

Unable to dynamically transpile ES module A loader plugin needs to be configured via SystemJS.config({ transpiler: 'transpiler-module' }).

I don’t know how to fix this. The FAQ says to remove any comments containing ESNext code but I don’t have any. Has anybody else successfully been able to yarn watch a React plugin without running yarn build everytime?

hi @mrjjwright did you find a solution to this? Cheers!

OK so one solution is to add "removeComments": true to the tsconfig.json file.
In some cases the error is caused by ES2016 code in comments. This has enabled me to use some React libraries however some still don’t work.

{
  "extends": "./node_modules/@grafana/toolkit/src/config/tsconfig.plugin.json",
  "include": ["src", "types"],
  "compilerOptions": {
    "removeComments": true,
    "rootDir": "./src",
    "baseUrl": "./src",
    "typeRoots": ["./node_modules/@types"]
  }
}

Let me know if this works for you