Component definition

    export default function (manifest) {
      manifest.addComponent({
        name: 'Navigation',
        graphQLQuery: `
        query NavigationQuery {
          search(
            fieldsEqual: [
              { name: "_fullpath", value: "/sitecore/content/${packageJson.config.appName}/*" },
              { name: "_templatename", value: "App Route" }
            ]
          ) {
            results {
              items {
                item {
                  name
                  url
                }
              }
            }
          }
        }`
      });
    }

Error when rendering component
[![Error when rendering component][1]][1]


  [1]: https://i.sstatic.net/NQn8a.png