-
Notifications
You must be signed in to change notification settings - Fork 121
Path must be a string. Received null #120
Comments
I guess it is related to the fact that I tried to use
Because it was complaining about missing PhantomJs otherwise:
|
If you are using phantomjs-prebuilt you should not need to set any env variables. Try removing your |
If I use Just to be clear - it is working, feel free to close the issue. |
okay thanks, closing this then. feel free to post any questions/issues though |
I just got this error. After some investigation, I found that karma-phantomjs-launcher worked with phantomjs-prebuilt "2.1.7" but not "^2.1.7". I haven't investigated any more than this, since it's working now :) ETA: and now it just works so no clue really |
I'm hitting the same issue. Installed globally |
Figuring out that
|
I seem to be hitting the same issue too, maybe it's worth re-opening the issue @firedev? |
+1 to reopen. This works when I run my tests locally but on Jenkins it fails. Running:
|
_Update:_ |
@philjones88 is right. Add |
I fixed simply deleting all node_modules and calling "npm install" another time. |
Same issue today, just tried removing all node modules and re installing which did stop the error but as @AngusFu says I now just have PhantomJS not starting, if I check the command line |
Upgrading to latest phantomjs-prebuilt (2.1.13) fixed this error for me. |
This issue is still present needs resolving as it breaks angular testing suite :( |
In my case, I was running |
Also having this issue. Upgrading to the [email protected] and [email protected] did not help. Adding a line P.S. I am using yarn 0.17.3 Update: removing a |
I am facing the same issue and I am in the same path as @cbrwizard (using yarn). I didn't want to do I solved it by running What I noticed is that if I just run I don't know if that will be useful for you guys, but posting it here just in case it helps somebody. |
I'm saw the same issue as @cbrwizard, but was able to fix it without resorting to npm by
Step 2 is crucial for whatever weird reason: Just removing |
@gabyvs - your solution worked for me. However, you can avoid calling
Now calling |
If you are using Karma it will swallow the exception and return a zero error code which will result in your CI build passing. Got a PR for it up karma-runner/karma#2672. You can try using that fork by running:
Your CI should at least fail now. |
Having this same issue with [email protected], [email protected], [email protected], [email protected]. Can you please re-open this issue, @dignifiedquire ? |
#191 trying to fix this, or at least provide a better error message |
This fixed it for me: rm -rf node_modules
yarn ¯_(ツ)_/¯ |
Any idea why it breaks to begin with @SimenB? Is it a mis-configured CI where the binary doesn't get installed properly or at the wrong time? |
I think the issue is that the current method for finding the path ( I'd guess running (or |
Thanks @SimenB added
To our and using a forked version of [email protected]
Will report here how it works for our team. Hopefully, it will be a good enough workaround for the time being. |
@andrewchilds |
Probably related: yarnpkg/yarn#1955 |
@SimenB Running |
This happens when your
phantomjs-launcher uses these properties to run phantomjs and if it is not found you see error "Path must be string" So check if location.js exists inside the lib folder under phantomjs-prebuilt or not, if not, run
|
Confirming that adding a
|
I had the error |
|
Just experienced this issue recently as well. Adding dependency on |
@martynchamberlin your solution works for me.thanks..at first,I found the phantomSource is null in index.js of karma-phantom-launcher. so,just try this one: yarn add --force phantomjs-prebuilt |
Just to confirm that |
I'm encountering this on OSX:
|
Ran into this problem locally with
There are similar steps that can be done with Seems like similar suggestions have already been stated above, figure that this might help someone in the future though! |
I solved it by preventing low disk space warnings/error. |
I use |
Sounds like whack-a-mole. |
I am having some issues configuring phantomJS for karma:
Nothing special the
karma.js
is pretty simple:I have found similar question on SO but no replies.
What could go wrong? Thanks.
The text was updated successfully, but these errors were encountered: