# CodeEditor doesn't support typescript/javascript

**URL:** <https://community.grafana.com/t/codeeditor-doesnt-support-typescript-javascript/52597>\
**Category:** Grafana Plugin Development\
**Created:** [August 30, 2021, 12:16pm UTC](https://community.grafana.com/t/codeeditor-doesnt-support-typescript-javascript/52597 "2021-08-30T12:16:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zuperzee](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/zuperzee/32/19470_2.png) [@zuperzee](https://community.grafana.com/u/zuperzee)\
**Post date:** [August 30, 2021, 12:16pm UTC](https://community.grafana.com/t/codeeditor-doesnt-support-typescript-javascript/52597/1 "2021-08-30T12:16:37Z")

</div>

Currently grafana has removed typescript which causes an error in the console if javascript is used. Is there a way to trick the editor to use javascript without getting the error in the console.

> <https://github.com/grafana/grafana/blob/bafe16368ae945f4627e445280a63f53e2cfcf7a/scripts/webpack/webpack.common.js#L85-L88>

![image](https://us1.discourse-cdn.com/grafana/original/3X/d/5/d5c553f56630ab655b8bcfb39b5ef6ef4daae3db.png)

---

<div class="post-metadata">

**Author:** ![anon70503803](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@anon70503803](https://community.grafana.com/u/anon70503803)\
**Post date:** [August 31, 2021, 6:05pm UTC](https://community.grafana.com/t/codeeditor-doesnt-support-typescript-javascript/52597/2 "2021-08-31T18:05:42Z")

</div>

Hi @zuperzee

Can you try explaining your problem again? Are you encountering this error while try to build grafana from source?

---

<div class="post-metadata">

**Author:** ![zuperzee](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/zuperzee/32/19470_2.png) [@zuperzee](https://community.grafana.com/u/zuperzee)\
**Post date:** [September 1, 2021, 8:40am UTC](https://community.grafana.com/t/codeeditor-doesnt-support-typescript-javascript/52597/3 "2021-09-01T08:40:29Z")

</div>

I’ve made a PR which will hopefully fix this. [Monaco: Add javascript and typescript support by ZuperZee · Pull Request #38703 · grafana/grafana · GitHub\</tit](https://github.com/grafana/grafana/pull/38703)  
Here is a better explanation if you’re curious [CodeEditor using javascript/typescript causes an error in the console · Issue #38700 · grafana/grafana · GitHub](https://github.com/grafana/grafana/issues/38700)

---

<div class="post-metadata">

**Author:** ![anon70503803](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@anon70503803](https://community.grafana.com/u/anon70503803)\
**Post date:** [October 1, 2021, 11:30pm UTC](https://community.grafana.com/t/codeeditor-doesnt-support-typescript-javascript/52597/4 "2021-10-01T23:30:05Z")

</div>

> [@zuperzee](#):
>
> CodeEditor using javascript/typescript causes an error in the console · Issue #38700 · grafana/grafana · GitHub

@zuperzee nicely done with the PR! :grafana: ❤

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/grafana/original/2X/e/ef5308cc58c9e5a13187b5012eb99f406928462f.png) [@system](https://community.grafana.com/u/system)\
**Post date:** [October 1, 2022, 11:30pm UTC](https://community.grafana.com/t/codeeditor-doesnt-support-typescript-javascript/52597/5 "2022-10-01T23:30:49Z")

</div>

Closed on October 1, 2022, 11:30pm UTC

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
