Skip to content

running locally on windows 10 gives errors #1088

@killynathan

Description

@killynathan

OS: Windows 10
Node: v8.9.4
yarn: v1.7.0

bugs

in terminal:

GraphQL Error Field "path" must not have a selection since type "String" has no subfields.
file: C:/Users/natha/documents/cs/reactjs.org/src/pages/docs/error-decoder.html.js

   1 |
   2 |   query ErrorPageMarkdown($slug: String!) {
   3 |     markdownRemark(fields: {slug: {eq: $slug}}) {
   4 |       html
   5 |       fields {
>  6 |         path {
     |              ^
   7 |           id
   8 |         }
   9 |       }
  10 |       frontmatter {
  11 |         title
  12 |       }
  13 |     }
  14 |     errorCodesJson {
  15 |       internal {
  16 |         contentDigest

in browser:

TypeError: Cannot read property 'code' of undefined
new Home
C:/Users/natha/documents/cs/reactjs.org/src/pages/index.js:27

  24 | 
  25 | const {data} = props;
  26 | 
> 27 | const code = data.code.edges.reduce((map, {node}) => {
  28 |   map[node.id] = JSON.parse(node.internal.contentDigest);
  29 | 
  30 |   return map;

Steps to reproduce:

git clone https://github.com/reactjs/reactjs.org.git
cd reactjs.org
yarn
yarn dev
open http://localhost:8000 in chrome



edit: don't know if related, but in #1065 I see changes to error-decoder.html.js of fields { path { id } }

edit2:
I am assuming everything in the readme works for windows as it doesn't say otherwise.

Also, when it says "Node: install version 8.4 or greater" in the readme, does that mean 8.x.x? Inside the package.json, I see:

"engines": {
    "node": "^8.4.0",
    "yarn": "^1.3.2"
  },

what does that mean for my globally installed node and yarn programs? And should the readme be updated to reflect the contents of the package.json?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions