Skip to content

Development mode serves HTML in response to /env.js #19

@x2048

Description

@x2048

This can be reproduced with the example in sample/v2.

  • Upgrade to react-scripts 5.0.1
  • npm install && npm start
  • Inspect the env.js request with the network tab - response will be a chunk of HTML, causing error message in the console.

Possible solution:

  • Placing an empty public/env.js avoids the problem.

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