# App Engine JS Error | process is not defined when trying to import assert

**URL:** <https://community.dynatrace.com/t/app-engine-js-error-process-is-not-defined-when-trying-to-import-assert/44018>\
**Category:** Developer Q&A Forum\
**Tags:** typescript, appengine, javascript\
**Created:** [February 7, 2024, 3:50pm UTC](https://community.dynatrace.com/t/app-engine-js-error-process-is-not-defined-when-trying-to-import-assert/44018 "2024-02-07T15:50:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abdelwahab](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@Abdelwahab](https://community.dynatrace.com/u/Abdelwahab)\
**Post date:** [February 7, 2024, 3:50pm UTC](https://community.dynatrace.com/t/app-engine-js-error-process-is-not-defined-when-trying-to-import-assert/44018/1 "2024-02-07T15:50:17Z")

</div>

I am trying to import and use assert in my. When I import assert I get the error shown in the screanshot below. I tried installing ‘process’ but still didn’t fix it. Is there a way to fix this problem?

 ![Abdelwahab_0-1707320895842.png](https://global.discourse-cdn.com/dynatrace/original/2X/3/30251e53b8577eac5b27bac308b346463568339e.png)

---

<div class="post-metadata">

**Author:** ![SarahFaustmann](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@SarahFaustmann](https://community.dynatrace.com/u/SarahFaustmann)\
**Post date:** [February 8, 2024, 3:47pm UTC](https://community.dynatrace.com/t/app-engine-js-error-process-is-not-defined-when-trying-to-import-assert/44018/2 "2024-02-08T15:47:42Z")

</div>

Hi&nbsp;[@Abdelwahab](https://community.dynatrace.com/user/57129),

Can you elaborate on where you’re trying to import assert? It’s&nbsp;[available as built-in module](https://developer.dynatrace.com/reference/javascript-runtime/#available-modules), and you’ll need to utilize an [app function](https://developer.dynatrace.com/develop/functions/) to use any of them since they’re not available in the frontend. Out of curiosity, what is your use case for assert?

Kind regards,

Sarah

---

<div class="post-metadata">

**Author:** ![Abdelwahab](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@Abdelwahab](https://community.dynatrace.com/u/Abdelwahab)\
**Post date:** [February 8, 2024, 4:45pm UTC](https://community.dynatrace.com/t/app-engine-js-error-process-is-not-defined-when-trying-to-import-assert/44018/3 "2024-02-08T16:45:02Z")

</div>

Hi&nbsp;[@SarahFaustmann](https://community.dynatrace.com/user/67610), I wanted to import it in the frontend is there a way to polyfill the process? I am trying to build a converter that converts selenium-based tests to DT assert is often used with selenium. I know that I can run it on an App function but I wanted to know how to polyfill in DT apps setup  
Thank you,&nbsp;  
Abdelwahab

---

<div class="post-metadata">

**Author:** ![SarahFaustmann](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@SarahFaustmann](https://community.dynatrace.com/u/SarahFaustmann)\
**Post date:** [February 13, 2024, 10:56am UTC](https://community.dynatrace.com/t/app-engine-js-error-process-is-not-defined-when-trying-to-import-assert/44018/4 "2024-02-13T10:56:56Z")

</div>

Hi&nbsp;[@Abdelwahab](https://community.dynatrace.com/user/57129), the process module is unavailable in the frontend because it’s tied to the Node.js runtime. Unfortunately in your case, the only way to use it in app development would be through an [app function](https://developer.dynatrace.com/develop/functions/). Polyfilling the module is also impossible because it is deeply tied to the Node.js runtime and can’t be emulated using JavaScript, like certain other Node.js features.

---

<div class="post-metadata">

**Author:** ![Abdelwahab](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@Abdelwahab](https://community.dynatrace.com/u/Abdelwahab)\
**Post date:** [February 20, 2024, 2:51pm UTC](https://community.dynatrace.com/t/app-engine-js-error-process-is-not-defined-when-trying-to-import-assert/44018/5 "2024-02-20T14:51:04Z")

</div>

Thank you
