Gradient for notes with two tags per graph

When I add two tags to one note, the note takes only one tag color on the graph. And I had the idea to make a plugin with gpt chat, which will define notes with two tags, and will make a gradient of the two colors that are specified by the tags but its plugin doesn’t work in any way, at the end there is always an error “app.js:1 Plugin failure: tag-gradient-plugin TypeError: u is not a constructor
at e. (app.js:1:2199591)
at app.js:1:237228
at Object.next (app.js:1:237333)
at a (app.js:1:236051)” I completely deleted the code, it is generally possible to implement it?