question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] 7.0.4 Could not find a route for the "index" page of your site! This is required. Please create a page or specify a route and template for this page.

See original GitHub issue

error message: Could not find a route for the "index" page of your site! This is required. Please create a page or specify a route and template for this page.. While there is a index page in ./src/pages and the plugin for this is installed.

This happens to the default typescript template (which is missing "react-static-plugin-typescript": "^7.0.0" & typescript, on another note).

steps to reproduce:

  1. react-static create
  2. select typescript
  3. install dependencies

Environment


  System:
    OS: Windows 10
    CPU: (8) x64 Intel(R) Core(TM) i7-2700K CPU @ 3.50GHz
    Memory: 5.50 GB / 15.69 GB
  Binaries:
    Node: 11.11.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.15.2 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 6.7.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: 44.17763.1.0
    Internet Explorer: 11.0.17763.1
  npmPackages:
    react: ^16.8.2 => 16.8.6
    react-dom: ^16.8.2 => 16.8.6
    react-static: ^7.0.0 => 7.0.5
    react-static-plugin-reach-router: ^7.0.0 => 7.0.0
    react-static-plugin-sitemap: ^7.0.0 => 7.0.0
    react-static-plugin-source-filesystem: ^7.0.0 => 7.0.0
    react-static-plugin-typescript: ^7.0.0 => 7.0.0

Expected Behavior

No error

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

5reactions
Herohtarcommented, Apr 5, 2019

@tannerlinsley Just figured it out… I was using location: path.resolve('./src/pages') as shown in the plugin example. Changing to just location: './src/pages' gets past that. My guess is it has something to do with Windows paths, since path.resolve() will give an absolute path of the form C:\Users\...

Likely to be @meesvandongen’s issue too.

Now to figure out the next error I’m getting…

1reaction
17cupsofcoffeecommented, Apr 14, 2019

For what it’s worth, I’m still getting this issue on 7.0.7 with the basic template - seems to be the same thing that Herohtar mentioned, as I’m also on Windows, and removing the path.resolve fixed it for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Bug] 7.0.4 Could not find a route for the "index" page of your ...
error message: Could not find a route for the "index" page of your site! This is required. Please create a page or specify...
Read more >
Can't route to another page in reactjs - Stack Overflow
Here is a picture of the website and my code for the route page. import React from "react"; const Blank2 = () => ......
Read more >
FortiGate / FortiOS 7.0.4 - Fortinet Documentation Library
Resolved issues. The following issues have been fixed in version 7.0.4. To inquire about a particular bug, please contact Customer Service & Support....
Read more >
Upgrading Ruby on Rails
Upgrading Ruby on RailsThis guide provides steps to be followed when you upgrade your applications to a newer version of Ruby on Rails....
Read more >
Release Notes - FortiOS 7.0.4 - Amazon AWS
Add FortiAP auto firmware provisioning option on the WiFi Settings page to allow for a federated upgrade of a FortiAP upon discovery and ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found