Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Internal Server Error" only with production bundle, but works great on localhost. #51

Open
trusktr opened this issue Nov 21, 2017 · 5 comments

Comments

@trusktr
Copy link

trusktr commented Nov 21, 2017

When I meteor build my app, I get an "Internal Server Error" on any picker routes. But it works fine on localhost:3000.

The error output looks like this:

TypeError: Path must be a string. Received null
    at assertPath (path.js:28:11)
    at Object.resolve (path.js:1184:7)
    at server/main.js:27:47
    at doCall (packages/meteorhacks_picker.js:128:14)

Any idea why this happens?

@trusktr
Copy link
Author

trusktr commented Nov 22, 2017

Reproduction: http://github.com/trusktr/trusktr.io

  • At the root of the repo, run cd src && npm install && npm run build
  • cd ../meteor-app
  • npm install
  • meteor build --architecture os.linux.x86_64 ../some-place --directory --debug
  • try to run the generated bundle, you will get the error in meteorhacks/picker.

You can also run meteor inside the meteor-app folder to run the app in dev mode, and picker works if you run it that way.

@trusktr
Copy link
Author

trusktr commented Nov 22, 2017

Oh, then once your run the bundle (or the app in dev mode) visit localhost:3000/flipDiagonal to see the error in production mode, or to see it working in dev mode.

@trusktr
Copy link
Author

trusktr commented Nov 29, 2017

@arunoda Any ideas?

@trusktr
Copy link
Author

trusktr commented Nov 29, 2017

I guess I'll have to give iron:router a try to hopefully get things working. I conceptually like Picker better though.

@trusktr
Copy link
Author

trusktr commented Dec 30, 2017

Hello, anyone there?

@trusktr trusktr changed the title "Internal Server Error" only with bundle, but works great on localhost. "Internal Server Error" only with production bundle, but works great on localhost. Dec 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant