[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 issueerror 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:
- react-static create
- select typescript
- 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:
- Created 4 years ago
- Comments:8 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@tannerlinsley Just figured it out… I was using
location: path.resolve('./src/pages')
as shown in the plugin example. Changing to justlocation: './src/pages'
gets past that. My guess is it has something to do with Windows paths, sincepath.resolve()
will give an absolute path of the formC:\Users\...
Likely to be @meesvandongen’s issue too.
Now to figure out the next error I’m getting…
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.