Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Scaffolded app includes additional .js files #236

@hdra

Description

@hdra

Not sure if this should go here or here, but the freshly scaffolded react app seems to include additional index.js and registerServiceWorker.js file in its src/ directory.

They don't cause any issue, and can be simply deleted, but I don't see any reason for them to be there either.

Is this a bug report?

Probably

Environment

  1. npm ls react-scripts-ts (if you haven’t ejected): 2.13.0
  2. node -v: 8.9.4
  3. npm -v: 5.4.2
  4. yarn --version (if you use Yarn): 1.3.2

Then, specify:

  1. Operating system: macOS 10.13.2

Steps to Reproduce

  1. create-react-app test-scaffold --scripts-version=react-scripts-ts

Expected Behavior

tree test-scaffold/src outputs:

test-scaffold/src
├── App.css
├── App.test.tsx
├── App.tsx
├── index.css
├── index.tsx
├── logo.svg
└── registerServiceWorker.ts

0 directories, 7 files

Actual Behavior

tree test-scaffold/src outputs:

test-scaffold/src
├── App.css
├── App.test.tsx
├── App.tsx
├── index.css
├── index.js
├── index.tsx
├── logo.svg
├── registerServiceWorker.js
└── registerServiceWorker.ts

0 directories, 9 files

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy