Open robross0606 opened 5 years ago
Related to this? https://github.com/apollographql/apollo-server/issues/2263
I can confirm this is only happening on Windows. Tried on Ubuntu and OSX and both seemed to work fine.
Have you tried the latest code in the master branch? I had updated dependencies last week - maybe this issue is fixed for windows. Also I was able to make the production build working (without ts-node). Perhaps you can try that.
Yes, this appears to have been resolved in master. Unfortunately, all your tags for the various steps in your instructions are still broken.
Also, you should use npx
in your package.json scripts so these things run on all platforms:
"scripts": {
"prebuild": "npx rimraf dist",
"build": "tsc && yarn copy-to-dist",
"copy-to-dist": "npx copyfiles --up 1 src/graphql/typedefs/* dist",
"dev": "npx nodemon --watch src -e ts,graphql --exec yarn start:dev",
"format": "npx prettier --write README.md 'src/**/*.ts'",
"start": "node dist/index.js",
"start:debug": "npx ndb ts-node src/index.ts",
"start:dev": "npx ts-node src/index.ts"
}
Thanks for the great suggestions @robross0606. Unfortunately I can't change content of committed tags. Time permitting, I would like to completely rewrite the article with latest versions of React and Apollo, utilizing function components and hooks.
@nareshbhatia, understood. Could you update the article(s) to suggest people just use the master branch instead of checking out the tags? Or, at least, add a link to a supplement that suggests how people can fix the tags to make them actually run. Or perhaps update the readme.md with hints as to how to fix if it won't run?
Yep. I think the easiest would be to update the README and add a note to the article to always check the README in the master branch. If you could send me a PR on the README that would be a big help.
The problem with just updating the README is that the change would not be visible on the existing tags. What really needs to change is the BLOG article.
Getting an error when running
yarn dev
on Step 2 of your blog instructions: