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:

Using Aoi Js To Build A Bot For Discord

Using aoi.js to build a bot on Discord

Explore how the aoi.js library makes it easy to create Discord bots with useful functionalities for frontend applications.

Rahul Padalkar
Apr 17, 2024 â‹… 9 min read
Web Components Adoption Guide: Overview, Examples, And Alternatives

Web Components adoption guide: Overview, examples, and alternatives

Evaluate Web Components, a set of standards that allow you to create custom HTML tags for more reusable, manageable code.

Elijah Asaolu
Apr 16, 2024 â‹… 11 min read
Using Aws Lambda And Aws Cloudfront To Optimize Image Handling

Using AWS Lambda and CloudFront to optimize image handling

Leverage services like AWS Lambda, CloudFront, and S3 to handle images more effectively, optimizing performance and providing a better UX.

Nitish Sharma
Apr 12, 2024 â‹… 12 min read
Building Web-Based Terminal Components With Termino.js

Building web-based terminal components with Termino.js

Explore Termino.js, an open source library for integrating web-based terminals into applications, in this introduction article.

Chibuike Nwachukwu
Apr 11, 2024 â‹… 6 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