Skip to content

Mistakenly identifying projects as typescript based on extra node_modules #6235

@paulbiba

Description

@paulbiba

Is this a bug report?

Yes

Did you try recovering your dependencies?

$ npm --version
6.4.1

Which terms did you search for in User Guide?

I Googled the error message.

Environment

Environment Info:

System:
OS: macOS High Sierra 10.13.6
CPU: x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
Binaries:
Node: 8.0.0 - ~/.nvm/versions/node/v8.0.0/bin/node
Yarn: 1.12.3 - ~/.nvm/versions/node/v8.0.0/bin/yarn
npm: 6.4.1 - ~/.nvm/versions/node/v8.0.0/bin/npm
Browsers:
Chrome: 71.0.3578.98
Firefox: 64.0
Safari: 12.0.2
npmPackages:
react: ^16.6.3 => 16.7.0
react-dom: ^16.6.3 => 16.7.0
react-scripts: ^2.1.3 => 2.1.3
npmGlobalPackages:
create-react-app: Not Found

Steps to Reproduce

(Write your steps here:)

My problem has already been documented clearly, but the ticket was closed with no workaround documented or described. I don't understand what I'm supposed to do.

#5669

Expected Behavior

I did not expect an error message. I did expect to be able to continue to work on my app without reorganizing my project to remove the extra node_modules directory.

Actual Behavior

$ npm start

[email protected] start /path/to/my/project
react-scripts start

We detected TypeScript in your project (subdirectory/subdirectory/node_modules/array-flatten/array-flatten.d.ts) and created a tsconfig.json file for you.

Could not parse tsconfig.json. Please make sure it contains syntactically correct JSON.
Details: error TS18003: No inputs were found in config file 'tsconfig.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '[]'.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: react-scripts start
npm ERR! Exit status 1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions