CRA Typescript: Compiling forever, if node_modules getting changed, while webpack is running
See original GitHub issueIs this a bug report?
Yes.
Did you try recovering your dependencies?
Yes.
Which terms did you search for in User Guide?
typescript, webpack, hangs
Environment
Whoops.
$ create-react-app --info
Environment Info:
(node:5138) UnhandledPromiseRejectionWarning: TypeError: Cannot read property '1' of null
at a.run.then.e (/usr/lib/node_modules/create-react-app/node_modules/envinfo/dist/envinfo.js:1:97255)
(node:5138) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:5138) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
- Node 11
- Create React App 2.1.0
- npm 6.4.1
Steps to Reproduce
- Create a new CRA project with
--typescript
- Link another npm package into this project.
- Updates files, which are included in the project, in the linked project
Expected Behavior
(Write what you thought would happen.) Webpack should compile the new files.
Actual Behavior
Webpack hangs forever on Compiling...
. If you terminate the process, it exits with exit code 0, but the compile process won’t terminate and is stuck on 100% CPU forever.
Reproducible Demo
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
webpack --watch isn't compiling changed files - Stack Overflow
If your code isn't being recompiled, try increasing the number of watchers (in Ubuntu): echo fs.inotify.max_user_watches=524288 | sudo tee -a ...
Read more >Build Performance - webpack
This guide contains some useful tips for improving build/compilation performance. General. The following best practices should help, whether you're running ...
Read more >STOP Using Create React App - YouTube
Create React App is a plague and we're here to cure it. Please use Vite, NextJS, or Remix instead. Seriously, anything is better...
Read more >How to boost the speed of your webpack build?
A story of performance optimization and application of the Pareto principle for a webpack build that has become far too long.
Read more >Create React App without Create React App - Bits and Pieces
This article talks about the process of creating react app without using any libraries or ... creating package.json and installing node modules using...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @Timer - on it.
Update: I think this is a linux OS Version edge case where /etc/os-release is missing some info. It’s actually already fixed in envinfo - I’ll make a PR to update CRA to envinfo@5.11.1
This issue has been automatically closed because it has not had any recent activity. If you have a question or comment, please open a new issue.