Giter Club home page Giter Club logo

Comments (8)

lauriejim avatar lauriejim commented on July 21, 2024 1

Hello! It's because you don't have data in your application and because routes are not open in your admin panel.

Please I suggest you to follow the steps in the article linked to this example.

Let me know if it's ok after that.

from strapi-examples.

benloeffel avatar benloeffel commented on July 21, 2024

Hi @lauriejim !

I've encountered the same issue as above on every render.

2019-03-27_16-45-42

routes are not open in your admin panel.

Could you clarify what causes this issue and how this can be resolved and avoided in the future?

Thanks & Regards

from strapi-examples.

fonziemedia avatar fonziemedia commented on July 21, 2024

Hi @BenjaminLoeffel

As @lauriejim mentioned you need to have data and open the routes in the admin area (permissions).

Check the tutorial for more info on the permissions you should grant.

Hope this helps and thanks @lauriejim for your reply.

from strapi-examples.

benloeffel avatar benloeffel commented on July 21, 2024

Hi @fonziemedia !

Data has been added to all Content Types and under Roles & Permissions in both the Authenticated & Public the Userspermissions getroutes checkbox is ticked.

image

The issue still occurs. 😔 !

from strapi-examples.

fonziemedia avatar fonziemedia commented on July 21, 2024

@BenjaminLoeffel,

You don't need to change the users permissions but the 'application' permissions for dish, order and restaurants as per the instructions on https://blog.strapi.io/strapi-next-setup/

from strapi-examples.

benloeffel avatar benloeffel commented on July 21, 2024

@fonziemedia & @lauriejim

Yes, I was following that tutorial and went over it a couple of times because I was unsure whether or not I had missed something.

I've followed the instructions found on the tutorial as per below:

Navigate to the Roles & Permissions section of the admin plugin (http://localhost:1337/admin/plugins/users-permissions).
Click on the Public role.
Tick the find and findone checkboxes of the Restaurant section.
Save.
Important: do the same thing for the authenticated role.

image

The data is received and and displaying properly for me, however the TypeError still gets printed to the console.

from strapi-examples.

lauriejim avatar lauriejim commented on July 21, 2024

Thank you @fonziemedia for the feedback.
I close this issue. If it works for you @fonziemedia it have to work for you @BenjaminLoeffel .
You probably miss something.

from strapi-examples.

benloeffel avatar benloeffel commented on July 21, 2024

It turns out that the issue I was experiencing above occurred due to an issue in the "next-apollo" dependency:

Cannot read property 'pathname' of undefined

from strapi-examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.