Gridsome w/ @prismicio/client - Missing Loader

Steps:

npm i @prismicio/client @prismicio/helpers

import * as prismic from '@prismicio/client'

Getting

 ERROR  Failed to compile with 2 errors                                                                                                                                                  10:35:13 AM

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

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);

 @ ./node_modules/@prismicio/client/dist/index.js 8:0-51 19:0-37:2 19:0-37:2
 @ ./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/gridsome/node_modules/babel-loader/lib??ref--1-1!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/pages/Search.vue?vue&type=script&lang=js&
 @ ./src/pages/Search.vue?vue&type=script&lang=js&
 @ ./src/pages/Search.vue
 @ ./src/.temp/routes.js
 @ ./node_modules/gridsome/app/router.js
 @ ./node_modules/gridsome/app/entry.sockjs.js
 @ multi webpack/hot/dev-server webpack-hot-middleware/client?name=app&reload=true&noInfo=true ./node_modules/gridsome/app/entry.client.js ./node_modules/gridsome/app/entry.sockjs.js

in the console. Looks like a webpack loader is missing but but can't narrow down what I need.

Hello @james0r ,

Thanks for reaching out to us.

I'm sorry I can't help with Gridsome w/ @prismicio/client. Officially, we don't have documentation for Gridsome and don't provide support for it. So implementing with @prismicio/client may require some additional configuration.

I will discuss it with my team and will come back to you if they have any insights for implementing it.

Thanks,
Priyanka