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

Nested routes not working #64

@RemiEven

Description

@RemiEven

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'".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions