Questions tagged [cosmicjs]
5 questions
0
votes
1 answer
NextJS 13 - Rendering as Text not HTML
I am trying to figure out why the HTML text that is in my CosmicJS CMS is rendering on the page as text.
Here is the function to get the post.
export async function getPost() {
const data = await Promise.resolve(
cosmicClient.objects
…

Don
- 311
- 2
- 4
- 18
0
votes
0 answers
const overrideOptions = metaConfig.config ?? {}; issue while running in bamboo
const overrideOptions = metaConfig.config ?? {};
30-Aug-2023 15:37:50 ^
30-Aug-2023 15:37:50
30-Aug-2023 15:37:50 SyntaxError: Unexpected token '?'
30-Aug-2023 15:37:50 at compileFunction…

user3409817
- 1
- 1
0
votes
0 answers
I am having problems integrating Cosmic Js into my NextJs application
I want to fill my homepage content with data from Cosmic CMS. But i am getting undefined.
Here is my code
import Container from 'containers/Container';
import SectionContainer from 'containers/SectionContainer';
import { getAllPostsForHome, PostType…
0
votes
0 answers
gatsby-plugin-image missing image prop
In using my CMS, Cosmic JS, gatsby-plugin-image is missing the image prop.
The div.data-gatsby-image-wrapper no longer exists since I upgraded from Gatsby 3 to 4.
This is my GraphQL query. I get null with local...
export const searchPageQuery =…

Matt
- 811
- 2
- 11
- 20
-1
votes
1 answer
Vue Vite + CosmicJS
I'm building a blog SPA website as a hobby, and trying to figure out what would be the best way to get the smallest latency to acquire posts from a database.
So far I've tried Wordpress, but its API at least at the very first initial request every…

Larry
- 55
- 1
- 6