# ERROR in ./node\_modules/@prismicio/client/dist/client.js

**URL:** <https://community.prismic.io/t/error-in-node-modules-prismicio-client-dist-client-js/12836>\
**Category:** Developing with Prismic\
**Created:** [April 4, 2023, 11:02am UTC](https://community.prismic.io/t/error-in-node-modules-prismicio-client-dist-client-js/12836 "2023-04-04T11:02:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![manelky](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@manelky](https://community.prismic.io/u/manelky)\
**Post date:** [April 4, 2023, 11:02am UTC](https://community.prismic.io/t/error-in-node-modules-prismicio-client-dist-client-js/12836/1 "2023-04-04T11:02:32Z")

</div>

Hello !  
I am getting this error when trying to run "npm run build" on my Nuxt app.  
"nuxt": "^2.15.8"  
If anyone knows how to fix it please.  
Thank you , good afternoon!

```auto
ERROR in ./node_modules/@prismicio/client/dist/client.js 102:90
Module parse failed: Unexpected token (102:90)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| const actualParams = { ...params };
| if (!(params && params.page) && !(params == null ? void 0 : params.pageSize)) {
> actualParams.pageSize = ((_a = this.defaultParams) == null ? void 0 : _a.pageSize) ?? 1;
| }
| const url = await this.buildQueryURL(actualParams);
ERROR in ./node_modules/@prismicio/client/dist/buildQueryURL.js 18:36
Module parse failed: Unexpected token (18:36)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| }
| for (const k in params) {
> const name = RENAMED_PARAMS[k] ?? k;
| let value = params[k];
| if (name === "orderings") {

```

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [April 4, 2023, 8:58pm UTC](https://community.prismic.io/t/error-in-node-modules-prismicio-client-dist-client-js/12836/2 "2023-04-04T20:58:59Z")

</div>

Which version of node are you using? Some packages need a specific version of Node.js and/or may not work correctly with the latest version.

Also, the error mentions that it's missing loaders to handle the client kit. [I found this stack-overflow thread](https://stackoverflow.com/a/74327940/12114295) where it suggests that updating your babel lib.

---

<div class="post-metadata">

**Author:** ![lateek35\_naturo](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/lateek35_naturo/32/9019_2.png) [@lateek35\_naturo](https://community.prismic.io/u/lateek35_naturo)\
**Post date:** [November 17, 2024, 12:54pm UTC](https://community.prismic.io/t/error-in-node-modules-prismicio-client-dist-client-js/12836/6 "2024-11-17T12:54:03Z")

</div>

Got similar issue:

```auto
 WARN Compiled with 1 warnings friendly-errors 13:50:32

 WARN in ./.nuxt/prismic/plugins/prismic.js friendly-errors 13:50:32

"export 'default' (imported as 'Prismic') was not found in '@prismicio/client' friendly-errors 13:50:32
                                                                                                                                                                         friendly-errors 13:50:32

 ERROR Failed to compile with 2 errors friendly-errors 13:50:32

 ERROR in ./node_modules/@prismicio/client/dist/client.js friendly-errors 13:50:32

Module parse failed: Unexpected token (105:90) friendly-errors 13:50:32
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| const actualParams = { ...params };
| if (!(params && params.page) && !(params == null ? void 0 : params.pageSize)) {
> actualParams.pageSize = ((_a = this.defaultParams) == null ? void 0 : _a.pageSize) ?? 1;
| }
| const url = await this.buildQueryURL(actualParams);
                                                                                                                                                                         friendly-errors 13:50:32
 @ ./node_modules/@prismicio/client/dist/index.js 8:0-51 19:0-37:2 19:0-37:2
 @ ./.nuxt/prismic/plugins/prismic.js
 @ ./.nuxt/index.js
 @ ./.nuxt/client.js
 @ multi ./node_modules/eventsource-polyfill/dist/browserify-eventsource.js (webpack)-hot-middleware/client.js?reload=true&timeout=30000&ansiColors=&overlayStyles=&path=%2F__webpack_hmr%2Fclient&name=client ./.nuxt/client.js
                                                                                                                                                                         friendly-errors 13:50:32

 ERROR in ./node_modules/@prismicio/client/dist/buildQueryURL.js friendly-errors 13:50:32

Module parse failed: Unexpected token (18:36) friendly-errors 13:50:32
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| }
| for (const k in params) {
> const name = RENAMED_PARAMS[k] ?? k;
| let value = params[k];
| if (name === "orderings") {
                                                                                                                                                                         friendly-errors 13:50:32
 @ ./node_modules/@prismicio/client/dist/index.js 7:0-51 19:0-37:2
 @ ./.nuxt/prismic/plugins/prismic.js
 @ ./.nuxt/index.js
 @ ./.nuxt/client.js
 @ multi ./node_modules/eventsource-polyfill/dist/browserify-eventsource.js (webpack)-hot-middleware/client.js?reload=true&timeout=30000&ansiColors=&overlayStyles=&path=%2F__webpack_hmr%2Fclient&name=client ./.nuxt/client.js
                                                                                                                                                                         friendly-errors 13:50:32
ℹ Waiting for file changes 13:50:32
ℹ Memory usage: 403 MB (RSS: 575 MB) 13:50:32
ℹ Listening on: http://192.168.1.196:3000/  

```

But I'm not using a gridsome, it's a basic nuxt.

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [November 18, 2024, 9:44am UTC](https://community.prismic.io/t/error-in-node-modules-prismicio-client-dist-client-js/12836/7 "2024-11-18T09:44:49Z")

</div>

Hi @lateek35_naturo ,

Have you updated your node packages?
