Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Path must be a string. Received null #1088

Closed
StephanBijzitter opened this issue May 30, 2016 · 4 comments
Closed

TypeError: Path must be a string. Received null #1088

StephanBijzitter opened this issue May 30, 2016 · 4 comments

Comments

@StephanBijzitter
Copy link
Contributor

Using Jest CLI v0.9.2, jasmine2, babel-jest

Same issue as fbsamples/f8app#52 but I don't use this module. Perhaps it is a submodule of anything else I am using, though.

 FAIL  spec/js/util/SanitationUtility.spec.es6
Runtime Error
TypeError: Path must be a string. Received null
    at assertPath (path.js:7:11)
    at Object.dirname (path.js:1324:5)
    at handle (/Users/stephanbijzitter/fabric_modules/node_modules/worker-farm/lib/child/index.js:41:8)
    at process.<anonymous> (/Users/stephanbijzitter/fabric_modules/node_modules/worker-farm/lib/child/index.js:47:3)
 FAIL  spec/js/FabricModules.spec.es6
@StephanBijzitter
Copy link
Contributor Author

Solved by updating to 12.1.1 (possibly also by earlier versions)

@cpojer
Copy link
Member

cpojer commented May 31, 2016

For posterity: Node 6 has a stricter path module and we updated Jest to work with Node 6 in 12.0.1.

@isaac-peka
Copy link

isaac-peka commented Jun 17, 2016

I'm still experiencing this problem in 12.1.1, I'm also using babel-jest.

 FAIL  server/webtools/__tests__/checks-test.js
● Runtime Error
TypeError: Path must be a string. Received null
    at assertPath (path.js:7:11)
    at Object.dirname (path.js:1324:5)

edit: turns out jest-cli was installed globally and outdated, but jest was up to date.

mcbryant added a commit to mcbryant/belle that referenced this issue Oct 3, 2016
The goal of this patch is to resolve warnings present when using Belle in a React 15.x codebase.
This patch should not change the behaviour of Belle.

Details:

 - tests, docs, and examples: upgraded to React 15.x
 - docs: upgraded to React Router 2.5.2 for compatibility with React 15.x
   (see remix-run/react-router#3695)
 - src, tests, docs, and examples: fixed various warnings introduced throughout React 15.x
 - tests: upgraded Jest for compatibility with Node 6 (jestjs/jest#1088)

Testing:

 - verified that there were no React-related warnings in tests, docs, and examples
 - browsed docs and examples in Chrome and FF
nikgraf pushed a commit to nikgraf/belle that referenced this issue Oct 10, 2016
The goal of this patch is to resolve warnings present when using Belle in a React 15.x codebase.
This patch should not change the behaviour of Belle.

Details:

 - tests, docs, and examples: upgraded to React 15.x
 - docs: upgraded to React Router 2.5.2 for compatibility with React 15.x
   (see remix-run/react-router#3695)
 - src, tests, docs, and examples: fixed various warnings introduced throughout React 15.x
 - tests: upgraded Jest for compatibility with Node 6 (jestjs/jest#1088)

Testing:

 - verified that there were no React-related warnings in tests, docs, and examples
 - browsed docs and examples in Chrome and FF
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants