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.

"There is no route for the path: /" in production bundling

See original GitHub issue

when i’m building for production flowrouter gives a “There is no route for the path: /” In development mode all is working as expected.

running:

  • meteor 1.4.1
  • deployment with mup
  • Webapp build with React

currently testing the bug with;

meteor run --production --settings settings-production.json

Try to solve it with;

  1. change the routes.js file location to /import/clients/routes.js
  2. change between mup/mupx and new mup deployment…
  3. change to flowrouter ServerSideRendering
  4. check for any Ready()

If anyone found a solution for the “There is no route for the path: /” in production bundling. That would be great.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
saulflores95commented, Nov 24, 2016

Hey @grinono thank you for responding, I was able to get it working. I had materialize meteor packet and mui design packet (this one was installed via npm) that I removed. After i did a clean cache of my meteor npm_modules folder. I reinstalled all my npm packets with --save(Except the two that I previously removed). When I uploaded the app to the server everything was working.

Hope this helps someone.

0reactions
dmattbergstromcommented, Oct 26, 2018

Hi!

I didn’t find the solution for this problem by anything here, but after 8 hours of hacking, i solved it.

  1. Some packages didn’t work in production for me, in Meteor 1.8. Check all your non-core packages and try to remove them one by one and see if that fixes the issue.

I removed the following problematic packages: aldeed:autoform gwendall:auth-client-callbacks dsyko-jquery-ui-touch

  1. Useraccounts was not included on both server and client. The page using that package was included in my routes.js file, and therefore mucked up all my routes, resulting in this nasty bug.

My tip for anyone who needs to figure out their own way of solving this bug:

  1. Start commenting out packages in .meteor/packages.json while running your app in the terminal with the production tag activated. That means, run your app with the following command, while removing possibly outdated packages (usually non-standard ones)

“meteor run --production”

  1. Keep the app running in production mode. Start commenting out routes in your routes.js file, and see if you can find the route/page that is mucking up all routes and causing this error.

Good luck! / Devmattb

Read more comments on GitHub >

github_iconTop Results From Across the Web

There is no route for path '/' on production
I am using flowrouter + react + meteor. I don't have any errors in development. But when i host or simulate production, then...
Read more >
Prefix Error in Production | Symfony 5 | No route found
Probably you are misusing the routing rules. Prefixes (and paths) are single-valued parameters. Multiple values are accepted only on in case ...
Read more >
Migrating to React Router v6: A complete guide
Migrate your React Router applications from v5 to v6 with this in-depth guide, including a review of additions and improvements from v5.
Read more >
Routes - Networking | OpenShift Container Platform 3.11
A path to a directory that contains a file named tls.crt. If tls.crt is not a PEM file which also contains a private...
Read more >
Fixing the 'cannot GET /URL' error on refresh with React ...
The root of the issue is that you're relying entirely on client side routing without setting up any logic to handle server-side routing....
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