-
Notifications
You must be signed in to change notification settings - Fork 331
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
on travis nwb test-react fails with TypeError: Path must be a string received null #271
Comments
Is there anything interesting in the |
Here is the raw log from Travis. I don’t see any issues reported regarding phantomjs-prebuilt:
```
travis_time:end:3a0ead40:start=1487780030497369524,finish=1487780031918178975,duration=1420809451
[0K[32;1mSetting up $PATH[0m
$ export PATH=$HOME/.yarn/bin:$PATH
travis_fold:start:install
[0Ktravis_time:start:0840754e
[0K$ yarn
[2K[1G[1myarn install v0.20.3[22m
[2K[1G[2m[1/4][22m Resolving packages...
[1G[0K[2K[1G[2K[1G[2m[2/4][22m Fetching packages...
[2K[1G[33mwarning[39m fsevents@1.1.1: The platform "linux" is incompatible with this module.
[2K[1G[34minfo[39m "fsevents@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation.
[2K[1G[2m[3/4][22m Linking dependencies...
[2K[1G[33mwarning[39m "react-addons-update@15.3.2" has incorrect peer dependency "react@^15.3.2".
[2K[1G[33mwarning[39m "react-dom@15.3.2" has incorrect peer dependency "react@^15.3.2".
[2K[1G[2m[4/4][22m Building fresh packages...
[2K[1G[2m$ echo 'done'[22m
done
[2K[1GDone in 56.21s.
travis_time:end:0840754e:start=1487780031924515962,finish=1487780088434397143,duration=56509881181
[0Ktravis_fold:end:install
[0Ktravis_time:start:00104dc0
[0K$ npm test
***@***.*** test /home/travis/build/OCMC-Translation-Projects/ioc-liturgical-react
nwb test-react
[31mError running command: Path must be a string. Received null[39m
TypeError: Path must be a string. Received null
at assertPath (path.js:7:11)
at Object.extname (path.js:1431:5)
at phantomJSExePath (/home/travis/build/OCMC-Translation-Projects/ioc-liturgical-react/node_modules/karma-phantomjs-launcher/index.js:19:12)
at Object.<anonymous> (/home/travis/build/OCMC-Translation-Projects/ioc-liturgical-react/node_modules/karma-phantomjs-launcher/index.js:104:12)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at getKarmaPluginConfig (/home/travis/build/OCMC-Translation-Projects/ioc-liturgical-react/node_modules/nwb/lib/createKarmaConfig.js:144:18)
at createKarmaConfig (/home/travis/build/OCMC-Translation-Projects/ioc-liturgical-react/node_modules/nwb/lib/createKarmaConfig.js:164:31)
at karmaServer (/home/travis/build/OCMC-Translation-Projects/ioc-liturgical-react/node_modules/nwb/lib/karmaServer.js:25:53)
at testReact (/home/travis/build/OCMC-Translation-Projects/ioc-liturgical-react/node_modules/nwb/lib/commands/test-react.js:13:29)
at cli (/home/travis/build/OCMC-Translation-Projects/ioc-liturgical-react/node_modules/nwb/lib/cli.js:246:3)
at Object.<anonymous> (/home/travis/build/OCMC-Translation-Projects/ioc-liturgical-react/node_modules/nwb/lib/bin/nwb.js:31:21)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3
```
… On Feb 22, 2017, at 10:45 AM, Jonny Buchanan ***@***.***> wrote:
Is there anything interesting in the npm install logs from your build? This looks like some sort of failure to install phantomjs-prebuilt.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#271 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABRbySa3tldeED6an9F5-dYjuug1Dy5Yks5rfFgogaJpZM4MIyij>.
|
I solved the problem by removing the following from my .travis.yml:
After this resulted in a successful build on Travis, I added the cache back in, and pushed to Git again. The build failed again. So, I removed the cache directive again, repushed, and the build passed. For now, I will not use the cache directive in the .travis.yml. It is unclear to me whether this is an issue regarding nwb. It doesn't seem to be. Do you want me to close it? Thanks for your help! |
Thanks for reporting this - default |
This issue is a:
The problem: nwb test runs fine in dev under Mac OS X. But, when the project is committed to git, and travis tests the build, it fails, complaining about a null path (see the output below).
What I have tried: the first time I encountered the problem, I tried setting my .travis.yml to use node 6 instead of 7. That fixed the problem then, but now it is broken again. All the tests pass when I run them on my dev machine.
I have searched on the Internet for people with a similar problem, but have not found any examples specific to nwb and travis. So, I am asking for help here. Is this perhaps an nwb bug?
My local versions are:
My .travis.yml is:
Here is the output from travis:
My package.json:
The text was updated successfully, but these errors were encountered: