-
-
Notifications
You must be signed in to change notification settings - Fork 753
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
Error while running boilerplated code #287
Comments
You need to pre-compile GraphQL queries used in code before launching the app either by running |
Still facing on this issue. alpeshpatel@XXXXXXXX:~/workspace/javascript/react/react-firebase-starter$yarn relay Watchman: watchman --no-pretty get-sockname returned with exit code=1, signal=null, stderr= 2018-03-14T11:55:15,351: [cli] unable to talk to your watchman on /usr/local/var/run/watchman/alpeshpatel-state/sock! (No such file or directory) HINT: pass --watch to keep watching for changes. Writing js |
@alpeshrpatel do you have Facebook's Watchman installed? What version? |
[email protected]:~/workspace/javascript/react/react-firebase-starter$watchman --version |
Try get get logs from watchman, here is a related issue facebook/watchman#143 |
EDIT: This issue and the issue described in the first post comes from not editing the .env file. However, how do I correctly edit this file? Firebase config is obvious, but how do I have to set the postgresql vars? What should PGPASSWORD be? What is this thing even and why do I need it? I thought this starter uses graphql? |
Don't know if this is useful, but I got it working now: First clone the repository in a directory and cd into it:
Then install PostgreSQL if it isn't already installed and give the default user a password:
Then edit the firebase config in the .env file and add that password above to the postgres config:
Now setup and start your app: PS: Be sure to either add your .env file to your .gitignore file or rename it to .env.local, otherwise other people can see your postgres password and firebase keys when you |
Does that mean i need postgres locally install ? i dont want it then what would be steps to follow ? |
@alpeshrpatel you would just need to modify |
@nnmrts you can use "postgres" account without a password (a password being an empty string), in that case, the |
@koistya I also read that "without a password"-thing somewhere else, but for my machine (linux debian 32 bit) this didn't work. Maybe that was just because I manually installed the desktop environment. :/ Nevertheless, I still can't deploy my project because of this:
Weird enough, because there is no functions directory. Still don't know if this is related, but it's definitely an edge case...should I open a new issue for this? (also, I'm afraid to run npm rebuild now, because I use yarn and npm would screw everything up :D (I will still try it though)) Anyway, how do I solve this? EDIT: I should also point out that deploying went fine until I installed a dependency with yarn and required it in server.js. |
My suggestion is to fully remove PostgreSQL from this starter. It's just an overload. This starter really worked great a week ago and now it just feels painful to work with. EDIT: `npm rebuild` fixed it for me, but still, I don't see why this starter needs PostgreSQL... |
Please keep me posted once you remove postgreSQL from start kit. |
@alpeshrpatel you still need a database for data, right? Can I ask, what kind of data you need to store and what db are you going to use instead of Postgres? |
I am planning to use mongo and firebase. Starter kit should not depend on any DB. Its should generic. Let me know if you need more info on this. |
@alpeshrpatel cosign |
Any luck on this ? |
@alpeshrpatel I'm planning to release an easier starter, based on an earlier version of this starter. I used it myself for the last two months. It's not dependent on any database framework and just works fine. |
@alpeshrpatel But protip: You just can clone any version before this commit: e255dfc and then remove the graphql dependencies and the components that use it. Removing PostgreSQL in the current version is way harder. Also, in this earlier version you just need to enter |
And sorry for quadruple post, but I find it kinda sad that there is not a single usable and generic simple boilerplate for React. EDIT: Classic case of featuritis. |
I m facing with this. Can someone please suggest something ?
(undefined) ./src/account/Account.js
Module not found: Can't resolve './generated/AccountFragment.graphql' in '/Users/alpeshpatel/workspace/javascript/react/react-firebase-starter/src/account'
The text was updated successfully, but these errors were encountered: