# Typescript error regarding prismicio/client after switching module resolution in typescript

**URL:** <https://community.prismic.io/t/typescript-error-regarding-prismicio-client-after-switching-module-resolution-in-typescript/13154>\
**Category:** Developing with Prismic\
**Tags:** typescript, nodejs\
**Created:** [May 19, 2023, 10:24am UTC](https://community.prismic.io/t/typescript-error-regarding-prismicio-client-after-switching-module-resolution-in-typescript/13154 "2023-05-19T10:24:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nihad.barucija](https://avatars.discourse-cdn.com/v4/letter/n/b2d939/32.png) [@nihad.barucija](https://community.prismic.io/u/nihad.barucija)\
**Post date:** [May 19, 2023, 10:24am UTC](https://community.prismic.io/t/typescript-error-regarding-prismicio-client-after-switching-module-resolution-in-typescript/13154/1 "2023-05-19T10:24:16Z")

</div>

Hello I have run recently into a issue where when i switched my module resolution in my tsconfig from node to node16 that the file for the module declaration was not found. This is the error below

```auto
Could not find a declaration file for module '@prismicio/client'. '/Users/xxxx/Desktop/xxx/xxx-xxx-/node_modules/@prismicio/client/dist/index.cjs' implicitly has an 'any' type.
  If the '@prismicio/client' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '@prismicio/client';

```

I am using the version 6.7.1 for prismicio/client same thing happense for the prismicio/types etc  
This is how i import it  
`import * as prismic from '@prismicio/client';`  
And just a side note everything works perfectly fine the module resolution is set to just node instead of node16.

---

<div class="post-metadata">

**Author:** ![racheal.orukele](https://avatars.discourse-cdn.com/v4/letter/r/ee7513/32.png) [@racheal.orukele](https://community.prismic.io/u/racheal.orukele)\
**Post date:** [May 23, 2023, 11:10am UTC](https://community.prismic.io/t/typescript-error-regarding-prismicio-client-after-switching-module-resolution-in-typescript/13154/3 "2023-05-23T11:10:34Z")

</div>

Hello @nihad.barucija,

Welcome to Prismic Community, and thanks for reaching out to us!

We saw the same issue on our end, and our team is currently looking into this.

And as an immediate fix, we recommend you use `moduleResolution: "node"` rather than `node16` which you stated, but we are trying to fix it on our end, so `node16` works and will get back to you when we have an update.

Thanks,  
Racheal.

---

<div class="post-metadata">

**Author:** ![racheal.orukele](https://avatars.discourse-cdn.com/v4/letter/r/ee7513/32.png) [@racheal.orukele](https://community.prismic.io/u/racheal.orukele)\
**Post date:** [May 30, 2023, 11:18am UTC](https://community.prismic.io/t/typescript-error-regarding-prismicio-client-after-switching-module-resolution-in-typescript/13154/4 "2023-05-30T11:18:18Z")

</div>

Hello @nihad.barucija,

I got feedback from our team on this issue. We do not currently support `moduleResolution: "node16"`. We officially support `moduleResolution: "node"`. But we are working to support it; we don't have an ETA right now, but we will keep you updated.

Thanks,  
Racheal.

---

<div class="post-metadata">

**Author:** ![nihad.barucija](https://avatars.discourse-cdn.com/v4/letter/n/b2d939/32.png) [@nihad.barucija](https://community.prismic.io/u/nihad.barucija)\
**Post date:** [May 30, 2023, 1:41pm UTC](https://community.prismic.io/t/typescript-error-regarding-prismicio-client-after-switching-module-resolution-in-typescript/13154/5 "2023-05-30T13:41:12Z")

</div>

No problem thank you a lot for reaching out I really appreciate it!

---

<div class="post-metadata">

**Author:** ![erik.albinsson](https://avatars.discourse-cdn.com/v4/letter/e/ee7513/32.png) [@erik.albinsson](https://community.prismic.io/u/erik.albinsson)\
**Post date:** [April 17, 2024, 2:19pm UTC](https://community.prismic.io/t/typescript-error-regarding-prismicio-client-after-switching-module-resolution-in-typescript/13154/7 "2024-04-17T14:19:05Z")

</div>

Hello, could'nt find anything about if this was resolved. Does it still only support `"node"` as of now?

---

<div class="post-metadata">

**Author:** ![angeloashmore](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/angeloashmore/32/2685_2.png) [@angeloashmore](https://community.prismic.io/u/angeloashmore)\
**Post date:** [April 19, 2024, 8:44pm UTC](https://community.prismic.io/t/typescript-error-regarding-prismicio-client-after-switching-module-resolution-in-typescript/13154/8 "2024-04-19T20:44:16Z")

</div>

Hi @erik.albinsson, yes, `moduleResolution: "node"` is still the only officially supported mode.
