ERROR in ./node_modules/@prismicio/client/dist/client.js

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!

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") {

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 where it suggests that updating your babel lib.