2020-03-19
1269
#js libraries#nuxtjs
Daniel Phiri
15892
Mar 19, 2020 â‹… 4 min read

Delivering content with Strapi and Nuxt

Daniel Phiri Open Source Advocate. Technical Writer and Speaker. Community Lead and Builder.

Recent posts:

Building A Multi-Lingual Web App With Nuxt 3 And Nuxt i18n

Building a multi-lingual web app with Nuxt 3 and Nuxt i18n

Create a multi-lingual web application using Nuxt 3 and the Nuxt i18n and Nuxt i18n Micro modules.

Emmanuel John
Dec 30, 2024 â‹… 9 min read
Styling HTML Details and Summary With Modern CSS

Styling HTML <details> and <summary> with modern CSS

Use CSS to style and manage disclosure widgets, which are the HTML `details` and `summary` elements.

Rob O'Leary
Dec 26, 2024 â‹… 11 min read
react native's new architecture: sync and async rendering

React Native’s New Architecture: Sync and async rendering

React Native’s New Architecture offers significant performance advantages. In this article, you’ll explore synchronous and asynchronous rendering in React Native through practical use cases.

Emmanuel John
Dec 24, 2024 â‹… 8 min read
Building a Full-Featured Laravel Admin Dashboard with Filament

Building a full-featured Laravel admin dashboard with Filament

Build scalable admin dashboards with Filament and Laravel using Form Builder, Notifications, and Actions for clean, interactive panels.

Kayode Adeniyi
Dec 20, 2024 â‹… 5 min read
View all posts

10 Replies to "Delivering content with Strapi and Nuxt"

  1. Thank you for a great article on how to use Nuxt with Strapi + GraphQL.

    One thing. You can install GraphQL in strapi from the marketplace in the strapi admin. Then you reach the GraphQL playground via localhost:1337/graphql.

  2. Thanks for catching that Christher – making changes now. Glad you liked it by the way.

  3. Hey Daniel, very appreciate your article, but unfortunately i got stuck at this problem:

    ERROR in ./pages/index.vue?vue&type=script&lang=js&
    Syntax Error: Unexpected character ‘​’ (30:0)

    28 |
    29 |
    > 30 | ​​export default {
    | ^
    31 | ​​ data() {
    32 | ​​ return {
    33 | ​​ albums: [],

    Could you help me to solve that? :/

    Best wishes

    1. Hey Ben! I can’t seem to see what the problem might be from the snippet you sent. Could you share a gist of the file? Do check that statement is in a tag though

  4. Hey Ben, I have the same problem as you, did you happen to find what was causing that problem ?

    Thanks

  5. To help anyone with the script tag throwing an error, here is a snippet of which i use that gets around the error:

    import Layout from ‘~/layouts/Default’;
    import placesQuery from ‘~/apollo/queries/places/place’;

    export default {
    data() {
    return {
    // Initialize an empty places variable
    places: [],
    query: ”
    }
    },
    apollo: {
    places: {
    prefetch: true,
    query: placesQuery
    }
    },
    computed: {
    // Search system
    filteredList() {
    return this.places.filter(place => {
    return place.name.toLowerCase().includes(this.query.toLowerCase())
    })
    },
    },
    head: {
    title: ‘My Places’
    }
    }

  6. Hey, sorry for my late reply – i did solve the problem, simply copied the code again from above and paste it in. Didn’t find any reason why it doesn’t work in the first approach.

Leave a Reply