grafana / plugin-tools

Create Grafana plugins with ease.
https://grafana.com/developers/plugin-tools/
Apache License 2.0
55 stars 27 forks source link

Create Plugin: polyfill `TextEncoder` for Jest tests in scaffolded plugins #899

Closed leventebalogh closed 2 months ago

leventebalogh commented 2 months ago

What changed?

I started to see ReferenceError: TextEncoder is not defined errors when scaffolding an app plugin with the latest version of create-plugin, and polyfilling the TextEncoder seemed to solve the problem. I don't yet understand why this started to happen now, maybe due to an update in any of the @grafana packages?

📦 Published PR as canary version: Canary Versions
:sparkles: Test out this PR locally via: ```bash npm install @grafana/create-plugin@4.9.3-canary.899.c6eb38b.0 # or yarn add @grafana/create-plugin@4.9.3-canary.899.c6eb38b.0 ```
github-actions[bot] commented 2 months ago

Hello! 👋 This repository uses Auto for releasing packages using PR labels.

✨ This PR can be merged and will trigger a new patch release. NOTE: When merging a PR with the release label please avoid merging another PR. For further information see here.

grafana-plugins-platform-bot[bot] commented 2 months ago

:rocket: PR was released in @grafana/create-plugin@4.10.1 :rocket: