# \#javascript

**URL:** https://community.prismic.io/tag/javascript/32.md?match_all_tags=true&page=1&tags%5B%5D=javascript

[Latest](https://community.prismic.io/latest.md) · [Categories](https://community.prismic.io/categories.md) · [Tags](https://community.prismic.io/tags.md)

**Page:** 2

---

## [Languages order was changed after updating an document (No longer Master Locale as first index)](https://community.prismic.io/t/languages-order-was-changed-after-updating-an-document-no-longer-master-locale-as-first-index/14852)

<div class="topic-metadata">

**Author:** [@skeleton-support](https://community.prismic.io/u/skeleton-support)\
**Replies:** 5\
**Last updated:** [January 11, 2024, 1:04pm UTC](https://community.prismic.io/t/languages-order-was-changed-after-updating-an-document-no-longer-master-locale-as-first-index/14852 "2024-01-11T13:04:23Z")

</div>

Hello, We're using the same code base for multiple Prismic repos and after making an update in one of our repos (Settings - Global Config), the languages array changed order when getting the information for this repo ca…

---

## [Image rendering issue](https://community.prismic.io/t/image-rendering-issue/14882)

<div class="topic-metadata">

**Author:** [@cristiano.unk](https://community.prismic.io/u/cristiano.unk)\
**Replies:** 2\
**Last updated:** [January 2, 2024, 10:29pm UTC](https://community.prismic.io/t/image-rendering-issue/14882 "2024-01-02T22:29:36Z")

</div>

Hi folks, I am new to Prismic and web development, I a just a designer trying to code my own portifolio :stuck\_out\_tongue: I'm currently in the Prismic integration part with the front end, but I'm having problems render…

---

## [Get all custom type's object from content relationship inside a slice (SvelteKit)](https://community.prismic.io/t/get-all-custom-types-object-from-content-relationship-inside-a-slice-sveltekit/14838)

<div class="topic-metadata">

**Author:** [@akis.studio](https://community.prismic.io/u/akis.studio)\
**Replies:** 6\
**Last updated:** [December 29, 2023, 10:40am UTC](https://community.prismic.io/t/get-all-custom-types-object-from-content-relationship-inside-a-slice-sveltekit/14838 "2023-12-29T10:40:36Z")

</div>

Hello, I'm new to Prismic.io and I have a problem when developing a test website in SvelteKit. I created a slice called "selectedServiced" where I can select services from a list of custom types "services". The issue I…

---

## [Route Resolver reach the maximum URL length](https://community.prismic.io/t/route-resolver-reach-the-maximum-url-length/14795)

<div class="topic-metadata">

**Author:** [@luca.bortolussi](https://community.prismic.io/u/luca.bortolussi)\
**Replies:** 1\
**Last updated:** [December 20, 2023, 1:47pm UTC](https://community.prismic.io/t/route-resolver-reach-the-maximum-url-length/14795 "2023-12-20T13:47:30Z")

</div>

Versions Operating System: Darwin Node Version: v18.18.2 Nuxt Version: 3.8.2 CLI Version: 3.10.0 Nitro Version: 2.8.1 Package Manager: yarn@4.0.1 Builder: - User Config: telemetry, vite, r…

---

## [Live previews for astro.js](https://community.prismic.io/t/live-previews-for-astro-js/14667)

<div class="topic-metadata">

**Author:** [@petro](https://community.prismic.io/u/petro)\
**Replies:** 3\
**Last updated:** [December 19, 2023, 7:57pm UTC](https://community.prismic.io/t/live-previews-for-astro-js/14667 "2023-12-19T19:57:03Z")

</div>

Is it possible to have live previews if my project on astro.js?

---

## [Passing webhook doc ids to new query](https://community.prismic.io/t/passing-webhook-doc-ids-to-new-query/14749)

<div class="topic-metadata">

**Author:** [@antoine.duvillier](https://community.prismic.io/u/antoine.duvillier)\
**Replies:** 7\
**Last updated:** [December 13, 2023, 3:04pm UTC](https://community.prismic.io/t/passing-webhook-doc-ids-to-new-query/14749 "2023-12-13T15:04:41Z")

</div>

Hello Prismic community, Goal I hope this message finds you well. I'm currently encountering an issue with the "@prismicio/client" npm package, specifically version "^7.3.1," and I could use some assistance in resolvin…

---

## [Unexpected token \`Bounded\`. Expected jsx identifier](https://community.prismic.io/t/unexpected-token-bounded-expected-jsx-identifier/14677)

<div class="topic-metadata">

**Author:** [@justin.berghahn](https://community.prismic.io/u/justin.berghahn)\
**Replies:** 1\
**Last updated:** [December 11, 2023, 4:09pm UTC](https://community.prismic.io/t/unexpected-token-bounded-expected-jsx-identifier/14677 "2023-12-11T16:09:22Z")

</div>

Hello everyone, i currently facing a issue and i don't know how do i have to fix this. I have a component called Bounded.tsx, in that component i give a few basic classes so everything is styles correctly. Local my proje…

---

## [@prismicio/helpers asHTML function returns string - PrismicRichText component doesnt display lists](https://community.prismic.io/t/prismicio-helpers-ashtml-function-returns-string-prismicrichtext-component-doesnt-display-lists/14477)

<div class="topic-metadata">

**Author:** [@raheim](https://community.prismic.io/u/raheim)\
**Replies:** 1\
**Last updated:** [November 22, 2023, 3:29pm UTC](https://community.prismic.io/t/prismicio-helpers-ashtml-function-returns-string-prismicrichtext-component-doesnt-display-lists/14477 "2023-11-22T15:29:03Z")

</div>

Hi there, Im currently trying to render some RichText in my Next JS App like so: const richDescription = prismicH.asHTML(description) the description is being passed from a parent component. However when I try to disp…

---

## [TS Types for usePrismicText](https://community.prismic.io/t/ts-types-for-useprismictext/14350)

<div class="topic-metadata">

**Author:** [@leopold](https://community.prismic.io/u/leopold)\
**Replies:** 3\
**Last updated:** [October 23, 2023, 12:31pm UTC](https://community.prismic.io/t/ts-types-for-useprismictext/14350 "2023-10-23T12:31:51Z")

</div>

I have a hard time figuring out the TS configuration for this function. It works like a charm though. import { usePrismicText } from '@prismicio/vue' import type { TitleField, RichTextField } from '@prismicio/types' exp…

---

## [How do i fetch a content relationship in a group with all the data](https://community.prismic.io/t/how-do-i-fetch-a-content-relationship-in-a-group-with-all-the-data/14250)

<div class="topic-metadata">

**Author:** [@justin.berghahn](https://community.prismic.io/u/justin.berghahn)\
**Replies:** 4\
**Last updated:** [October 10, 2023, 9:25pm UTC](https://community.prismic.io/t/how-do-i-fetch-a-content-relationship-in-a-group-with-all-the-data/14250 "2023-10-10T21:25:46Z")

</div>

Hello, i was wondering how i fetch the data of a content relationship when its in a group. I have a homepage and with conten relationship in a group i show some of the blogs. I want to fetch the title for examle of the b…

---

## ["Any" predicate with a field path returns 400 error if that field is both in a tab and empty in all documents](https://community.prismic.io/t/any-predicate-with-a-field-path-returns-400-error-if-that-field-is-both-in-a-tab-and-empty-in-all-documents/11536)

<div class="topic-metadata">

**Author:** [@laura1](https://community.prismic.io/u/laura1)\
**Replies:** 4\
**Last updated:** [October 5, 2023, 12:54pm UTC](https://community.prismic.io/t/any-predicate-with-a-field-path-returns-400-error-if-that-field-is-both-in-a-tab-and-empty-in-all-documents/11536 "2023-10-05T12:54:30Z")

</div>

I'm working on an article filter right now. Each article has a group field that contains a content relationship to the "Categories" custom type. I've set up the query to filter by Categories like so: const newsArticles …

---

## [GraqhQL Doesn't Work](https://community.prismic.io/t/graqhql-doesnt-work/14091)

<div class="topic-metadata">

**Author:** [@brian1](https://community.prismic.io/u/brian1)\
**Replies:** 1\
**Last updated:** [September 28, 2023, 1:58pm UTC](https://community.prismic.io/t/graqhql-doesnt-work/14091 "2023-09-28T13:58:51Z")

</div>

Hi, I am running into an issue with a blog page where it is loading in all of the data from each blog post for the index page. I have tried both adding the 'fetch' option as well as a graphQuery option (separate tests).…

---

## [Error Object as Child with async Function in Slice](https://community.prismic.io/t/error-object-as-child-with-async-function-in-slice/14046)

<div class="topic-metadata">

**Author:** [@lempebap](https://community.prismic.io/u/lempebap)\
**Replies:** 2\
**Last updated:** [September 20, 2023, 12:18pm UTC](https://community.prismic.io/t/error-object-as-child-with-async-function-in-slice/14046 "2023-09-20T12:18:15Z")

</div>

I have an issue with this code, but i don't know where. In the following code Testimonials is found, and well map then in the return, but there's an error pop-in :"Error: Objects are not valid as a React child (found: \[…

---

## [Static.cdn.prismic.io Cross Origin Resource Policy](https://community.prismic.io/t/static-cdn-prismic-io-cross-origin-resource-policy/14098)

<div class="topic-metadata">

**Author:** [@samkilgus](https://community.prismic.io/u/samkilgus)\
**Replies:** 1\
**Last updated:** [September 15, 2023, 10:16am UTC](https://community.prismic.io/t/static-cdn-prismic-io-cross-origin-resource-policy/14098 "2023-09-15T10:16:33Z")

</div>

Hello! I am working on a project that utilizes javascript's SharedArrayBuffer functionality. This requires setting the following headers: Cross-Origin-Embedder-Policy: require-corp Cross-Origin-Opener-Policy: same-orig…

---

## [Exit Preview ----](https://community.prismic.io/t/exit-preview/14095)

<div class="topic-metadata">

**Author:** [@gig.gabriel97](https://community.prismic.io/u/gig.gabriel97)\
**Replies:** 1\
**Last updated:** [September 14, 2023, 1:53pm UTC](https://community.prismic.io/t/exit-preview/14095 "2023-09-14T13:53:40Z")

</div>

Had confusing error exiting preview, with function by created with slicemachine init function. If someone else ends up with it just add default to /api/exit-preview endpoint Should look like that import { NextApiReque…

---

## [Prismic filters - error 500 when field not available in prismic](https://community.prismic.io/t/prismic-filters-error-500-when-field-not-available-in-prismic/14080)

<div class="topic-metadata">

**Author:** [@gulfteam](https://community.prismic.io/u/gulfteam)\
**Replies:** 1\
**Last updated:** [September 14, 2023, 10:48am UTC](https://community.prismic.io/t/prismic-filters-error-500-when-field-not-available-in-prismic/14080 "2023-09-14T10:48:10Z")

</div>

I am using the following filter when fetching data from prismic: prismicC.filter.any(\`my.alert.page\_type.page\`, \[ alertData.page, \]), The filter is working as expected only when "my.alert.page\_type.page" field is…

---

## [Sort by combination of fields in Javascript API](https://community.prismic.io/t/sort-by-combination-of-fields-in-javascript-api/524)

<div class="topic-metadata">

**Author:** [@rrkuepper](https://community.prismic.io/u/rrkuepper)\
**Replies:** 2\
**Last updated:** [August 24, 2023, 8:44pm UTC](https://community.prismic.io/t/sort-by-combination-of-fields-in-javascript-api/524 "2023-08-24T20:44:38Z")

</div>

hi there i'm querying the api via: i'm querying the javascript api via: const queryData = await this.$prismic.api.query( \[ this.$prismic.predicates.any('document.type', \['news', 'press'\]) \], { …

---

## [Slice Simulator Error](https://community.prismic.io/t/slice-simulator-error/13844)

<div class="topic-metadata">

**Author:** [@digitaldantecrypto](https://community.prismic.io/u/digitaldantecrypto)\
**Replies:** 1\
**Last updated:** [August 13, 2023, 10:46am UTC](https://community.prismic.io/t/slice-simulator-error/13844 "2023-08-13T10:46:50Z")

</div>

Hello Everyone, I am trying to develop a website following this tutorial : https://www.youtube.com/watch?v=QeD31HHsREg&t=761s And when I want to see the simulator of my slices I get nothing but a text saying : "Placehol…

---

## [Access-Control-Allow-Origin: \* in assets](https://community.prismic.io/t/access-control-allow-origin-in-assets/13786)

<div class="topic-metadata">

**Author:** [@tech.microsites.plat](https://community.prismic.io/u/tech.microsites.plat)\
**Replies:** 2\
**Last updated:** [August 1, 2023, 6:38am UTC](https://community.prismic.io/t/access-control-allow-origin-in-assets/13786 "2023-08-01T06:38:51Z")

</div>

Hi! Would it be possible to add Access-Control-Allow-Origin: \* header to javascript assets that are used by browser. It will help us to see errors in these third-party scripts. Currently we can see only Script error in …

---

## [Error: invariant expected app router to be mounted](https://community.prismic.io/t/error-invariant-expected-app-router-to-be-mounted/13706)

<div class="topic-metadata">

**Author:** [@ali](https://community.prismic.io/u/ali)\
**Replies:** 1\
**Last updated:** [July 19, 2023, 8:39am UTC](https://community.prismic.io/t/error-invariant-expected-app-router-to-be-mounted/13706 "2023-07-19T08:39:33Z")

</div>

When we deploy in production we get this error from prismic. All is working perfectly in developpement environnement. This is error message we get : …s/www/.next/server/app/\[uid\]/page.js:561:12) { url: 'https://xxxxx…

---

## [Next JS - PrismicError: A valid fetch implementation was not provided](https://community.prismic.io/t/next-js-prismicerror-a-valid-fetch-implementation-was-not-provided/13574)

<div class="topic-metadata">

**Author:** [@Marving](https://community.prismic.io/u/Marving)\
**Replies:** 3\
**Last updated:** [July 10, 2023, 2:24pm UTC](https://community.prismic.io/t/next-js-prismicerror-a-valid-fetch-implementation-was-not-provided/13574 "2023-07-10T14:24:40Z")

</div>

Hello, I am refactoring my personal website in a cleaner way with Next.js 13.2, and facing an issue when reproducing what I have previously done for the Internationalization of my website. I am getting an error that I …

---

## [Error handling management](https://community.prismic.io/t/error-handling-management/13455)

<div class="topic-metadata">

**Author:** [@unlikelystudio](https://community.prismic.io/u/unlikelystudio)\
**Replies:** 1\
**Last updated:** [June 19, 2023, 1:13pm UTC](https://community.prismic.io/t/error-handling-management/13455 "2023-06-19T13:13:05Z")

</div>

Hello there, We need to have a way to handle specific errors like 400 - Bad Request 401 - Unauthorized 404 - Not Found 429 - Too Many Request 500, 502, 503, 504 - Server Errors How can we achieve this properly ? T…

---

## [Get content relationship fields from a slice](https://community.prismic.io/t/get-content-relationship-fields-from-a-slice/13241)

<div class="topic-metadata">

**Author:** [@ondine](https://community.prismic.io/u/ondine)\
**Replies:** 3\
**Last updated:** [June 5, 2023, 1:11pm UTC](https://community.prismic.io/t/get-content-relationship-fields-from-a-slice/13241 "2023-06-05T13:11:23Z")

</div>

Hello, I'm trying to get the data from my content relationship field which is in the non repeatable part of my slice. I am managing to get the object, but not retrieve data from it. I know I should use fetch links or gr…

---

## [Article CustomType With Content-Relationship To Fill Multiple Slices](https://community.prismic.io/t/article-customtype-with-content-relationship-to-fill-multiple-slices/12931)

<div class="topic-metadata">

**Author:** [@harry.mardirossian13](https://community.prismic.io/u/harry.mardirossian13)\
**Replies:** 4\
**Last updated:** [April 28, 2023, 6:16pm UTC](https://community.prismic.io/t/article-customtype-with-content-relationship-to-fill-multiple-slices/12931 "2023-04-28T18:16:24Z")

</div>

Hello Prismic People! I've recently built a Next.js website with sections (blog slices) dedicated to previewing articles from varying sources, which is accomplished by filling various related fields (ArticleTitle1, Arti…

---

## [How to interpolate variables from content using richTextComponents?](https://community.prismic.io/t/how-to-interpolate-variables-from-content-using-richtextcomponents/12759)

<div class="topic-metadata">

**Author:** [@dmakos](https://community.prismic.io/u/dmakos)\
**Replies:** 14\
**Last updated:** [April 28, 2023, 10:11am UTC](https://community.prismic.io/t/how-to-interpolate-variables-from-content-using-richtextcomponents/12759 "2023-04-28T10:11:38Z")

</div>

Hi, I have an issue and somehow struggling with implementation of this. I'm using Prismic with Next.js and my content will contain prices that should change when the currency is changed on the site. For example I have …

---

## [How to use Prismic localization together with next-i18next?](https://community.prismic.io/t/how-to-use-prismic-localization-together-with-next-i18next/12918)

<div class="topic-metadata">

**Author:** [@dmakos](https://community.prismic.io/u/dmakos)\
**Replies:** 3\
**Last updated:** [April 20, 2023, 11:01am UTC](https://community.prismic.io/t/how-to-use-prismic-localization-together-with-next-i18next/12918 "2023-04-20T11:01:33Z")

</div>

Hi, I stumbled upon another issue when developing with Prismic. I struggle to make these two work together. I followed the docs to set this up Multilingual Templating with Next.js - Documentation - Prismic but I'm gett…

---

## [Please stop refactoring your javascript APIs](https://community.prismic.io/t/please-stop-refactoring-your-javascript-apis/12855)

<div class="topic-metadata">

**Author:** [@gabe.chang](https://community.prismic.io/u/gabe.chang)\
**Replies:** 1\
**Last updated:** [April 7, 2023, 6:04pm UTC](https://community.prismic.io/t/please-stop-refactoring-your-javascript-apis/12855 "2023-04-07T18:04:45Z")

</div>

Hey Prismic developers. Please think about your customers before you decide to refactor any of your APIs again - you're going to risk losing them. We want to build on Prismic and not worry about it. I have no desire t…

---

## [Nextjs Dynamic nested paths in links - Async function in linkResolver?](https://community.prismic.io/t/nextjs-dynamic-nested-paths-in-links-async-function-in-linkresolver/12840)

<div class="topic-metadata">

**Author:** [@mmartinhez08](https://community.prismic.io/u/mmartinhez08)\
**Replies:** 2\
**Last updated:** [April 5, 2023, 9:15pm UTC](https://community.prismic.io/t/nextjs-dynamic-nested-paths-in-links-async-function-in-linkresolver/12840 "2023-04-05T21:15:07Z")

</div>

Hi there! I'm working on implementing some dynamic nested routes for a multi-language website. I managed to build the paths correctly with a content relationship field linked with my page post type export const getStat…

---

## [Can I query all documents of a type inside nuxt 2 component using fetch?](https://community.prismic.io/t/can-i-query-all-documents-of-a-type-inside-nuxt-2-component-using-fetch/12821)

<div class="topic-metadata">

**Author:** [@thezumrad](https://community.prismic.io/u/thezumrad)\
**Replies:** 2\
**Last updated:** [April 5, 2023, 10:38am UTC](https://community.prismic.io/t/can-i-query-all-documents-of-a-type-inside-nuxt-2-component-using-fetch/12821 "2023-04-05T10:38:24Z")

</div>

Works only on page load! On route navigation doesn't, gives null Here is the code: async fetch() { this.data = await this.$prismic.api.query(this.$prismic.predicates.at('document.type', 'gallery'), { …

---

## [Using @prismicio/helpers and/or @prismicio/richtext with exported content from Prismic](https://community.prismic.io/t/using-prismicio-helpers-and-or-prismicio-richtext-with-exported-content-from-prismic/12620)

<div class="topic-metadata">

**Author:** [@barinali](https://community.prismic.io/u/barinali)\
**Replies:** 4\
**Last updated:** [March 16, 2023, 3:34pm UTC](https://community.prismic.io/t/using-prismicio-helpers-and-or-prismicio-richtext-with-exported-content-from-prismic/12620 "2023-03-16T15:34:13Z")

</div>

I'm trying to get the HTML string of some exported data with the help of @prismicio/helpers and @prismicio/richtext, but it seems to fail. For example, I have a StructuredText consisting of a single heading1. When I use…

[Previous page](https://community.prismic.io/tag/javascript/32.md?match_all_tags=true&tags%5B%5D=javascript)

[Next page](https://community.prismic.io/tag/javascript/32.md?match_all_tags=true&page=2&tags%5B%5D=javascript)
