Skip to content
This repository has been archived by the owner on Feb 27, 2019. It is now read-only.

Nested routes not working #64

Open
RemiEven opened this issue Oct 18, 2016 · 2 comments
Open

Nested routes not working #64

RemiEven opened this issue Oct 18, 2016 · 2 comments

Comments

@RemiEven
Copy link

Description

When generating a new project (using version 1.0.0-rc1), nested route don't work.

Error Message & Stack Trace

Not much relevant, but the browser's console prints 404 for http://localhost:3000/path/index.js when requesting http://localhost:3000/path/path2

Config

Copy the content from .yo-rc.json:

{
  "generator-fountain-react": {
    "version": "1.0.0-rc1",
    "props": {
      "resolved": "/home/remi/.nvm/versions/node/v6.8.1/lib/node_modules/generator-fountain-react/generators/app/index.js",
      "namespace": "fountain-react:app",
      "argv": {
        "remain": [],
        "cooked": [],
        "original": []
      },
      "framework": "react",
      "modules": "webpack",
      "css": "css",
      "js": "babel",
      "ci": [],
      "sample": "hello",
      "router": "router"
    }
  }
}

Environment

Tell us which operating system you are using, as well as which versions of Node.js, npm, and yo. Run the following to get it quickly:

Node.js v6.8.1
linux 4.7.7-200.fc24.x86_64
yo version 1.8.5
npm version 3.10.8

I fixed the bug locally by modifying the generated webpack config, replacing the output filename "'index.js'" by "'/index.js'".

@Swiip
Copy link
Member

Swiip commented Nov 5, 2016

Seems related to the use of browersync-sp (https://github.com/shakyShane/browser-sync-spa) a but Fountain rc1 includes it by default... Can you check that it's loaded in your browsersync conf?

@gozes
Copy link

gozes commented Feb 27, 2017

@RemiEven did it work?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants