choojs / choojs/create-choo-app
npm run-script build routes failing
- Dominant language
- JavaScript
- Stars
- 180
- Forks
- 30
- PR merge metrics
- No merged PRs in 30d
Description
I recently attempted to build my choo project using the command `npm run-script build`. When I ran my server on the files that were generated in the `dist` directory, none of my dynamic routes worked. I.e. have a route with something like `app.route('/:user', user)`. This works great in dev, but after running my http server on the `dist` directory and attempt to go to a route I get `Error code: 404, file not found`. To run my http server I am using the following command in the dist directory: `python -m simpleHttpServer 8000`. Any clues on how to solve this issue?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing `npm run-script build`, serving the generated `dist` directory with `python -m simpleHttpServer 8000`, and visiting a route matching `app.route('/:user', user)`. Investigate why the built app returns a 404 for that dynamic route; done means the route works when served from `dist` as it does in development.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- build-system, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100