Skip to content

Error running start script on Windows at Chapter 6 #73

@talohana

Description

@talohana

I'm currently going through chapter 6, working with React.
The start script sets environment variable named EXTEND_ESLINT, which on windows outputs the following error:

'EXTEND_ESLINT' is not recognized as an internal or external command, operable program or batch file.

I ended up using cross-env and updating the start script to:

  "scripts": {
    "start": "cross-env EXTEND_ESLINT=true react-scripts start"
  },

And maybe you could add some explanation of why we need this dependency where you explain other project dependencies.

I would happily submit a PR (with some instructions on how to apply them to all branches).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions