question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Watcher failing to run on latest create-react-app (0.8.3)

See original GitHub issue

I just installed the latest create-react-app and I can no longer get the watcher to run. I’m currently getting the following error in vscode:

fs.js:1431
    throw error;
    ^

Error: watch /home/bill/dev/react-client/node_modules/es5-ext/test/string/#/contains ENOSPC
    at exports._errnoException (util.js:1026:11)
    at FSWatcher.start (fs.js:1429:19)
    at Object.fs.watch (fs.js:1456:11)
    at NodeWatcher.watchdir (/home/bill/dev/react-client/node_modules/sane/src/node_watcher.js:144:20)
    at Walker.<anonymous> (/home/bill/dev/react-client/node_modules/sane/src/node_watcher.js:353:12)
    at emitTwo (events.js:106:13)
    at Walker.emit (events.js:191:7)
    at /home/bill/dev/react-client/node_modules/walker/lib/walker.js:69:16
    at go$readdir$cb (/home/bill/dev/react-client/node_modules/graceful-fs/graceful-fs.js:149:14)
    at FSReqWrap.oncomplete (fs.js:123:15)

All the tests are marked with empty green circles and indicate that tests haven’t been run even though they have been.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
kroniakcommented, Jan 24, 2017

I see other errors, jsx transformation does not work. This is last CRA 0.8.3

FAIL  src\App.test.js

  ● Test suite failed to run

    SyntaxError: e:/workspaces/_templates/React/create-react-app/src/App.test.js: Unexpected token (7:18)
      5 | it('renders without crashing', () => {
      6 |   const div = document.createElement('div');
    > 7 |   ReactDOM.render(<App />, div);
        |                   ^
      8 | });
      9 | 
      
      at Parser.pp$5.raise (node_modules\babylon\lib\index.js:4333:13)
      at Parser.pp.unexpected (node_modules\babylon\lib\index.js:1705:8)
      at Parser.pp$3.parseExprAtom (node_modules\babylon\lib\index.js:3670:12)
      at Parser.pp$3.parseExprSubscripts (node_modules\babylon\lib\index.js:3414:19)
      at Parser.pp$3.parseMaybeUnary (node_modules\babylon\lib\index.js:3394:19)
      at Parser.pp$3.parseExprOps (node_modules\babylon\lib\index.js:3324:19)
      at Parser.pp$3.parseMaybeConditional (node_modules\babylon\lib\index.js:3301:19)
      at Parser.pp$3.parseMaybeAssign (node_modules\babylon\lib\index.js:3264:19)
      at Parser.pp$3.parseExprListItem (node_modules\babylon\lib\index.js:4190:16)
      at Parser.pp$3.parseCallExpressionArguments (node_modules\babylon\lib\index.js:3493:20)


Test Suites: 1 failed, 1 total
Tests:       0 total
Snapshots:   0 total
Time:        8.924s
Ran all test suites.
0reactions
seanpoultercommented, Nov 4, 2017

Closing this issue since the extension now displays a message that it relies on Jest 20+, and despite the using create-react-app with react-scripts 0.8.3 and Jest 17.0.2 it still worked OK.

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

javascript - npm start error with create-react-app - Stack Overflow
It just means something went wrong when dependencies were installed the first time. I suggest doing these three steps: npm install -g npm@latest ......
Read more >
'Failed to initialize watch plugin' when running tests ... - GitHub
Describe the bug Running tests (using npm test) for a newly created app throws the error: Error: Failed to initialize watch plugin ...
Read more >
Troubleshooting - Create React App
This is caused by a webpack watcher bug. On Linux and macOS, you might need to tweak system settings to allow more watchers....
Read more >
A Fresh Create React App But always compiling with Error
So I have just excuted npx create-react-app my-app yet somehow when I run npm start I always get the following Error: Failed to...
Read more >
NPX Create React APP Not Working - YouTube
To create a new React App, we use npx command with create - react - app and then project name. It should create...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found