Typescript/plugins: reflect-metadata and class-transformer cannot find Reflect.getMetadata

I am getting a console error cannot find Reflect.getMetadata. Do I need to do anything?

I am writing a plugin and most things are good, but one thing is not working. I want to convert some JSON into a class object. For this, I am using `plainToInstance(Question, JSON.parse(source) (Question is the class), and this worked until I created a nested class, and then I started getting this error. Does anyone know how I can fix this (for code running underObsidian)?

I have declared reflect-metadata and class-transformer. I have annotated the object like

@Type(() => RandomEvent)
	random_event: RandomEvent;
```

Specifically, the error message is app.js:1 Plugin failure: pluginname TypeError.

The abswer, for the record, turned out to be adding the following to my compiler options in tsconfig.json:


		"experimentalDecorators": true,
		"emitDecoratorMetadata": true