-
Notifications
You must be signed in to change notification settings - Fork 121
Error during loading "angular-webpack/node_modules/karma-phantomjs-launcher" plugin: Path must be a string. Received null #141
Comments
Looks like #131 will help? |
i went to node_modules\karma_phantomjs_launcher change index.js to as follows
then run npm i went to ../phantomjs npm i reinstalled my project from its root dir then karma start this is not fixed and a show stopper. i am at a client site that needs this now and we cannot do anything C:\apache-tomcat-8.0.23\webapps\ROOT\a2\widget.qualify\dropdown>karma start |
@nhhockeyplayer lock it to |
Have locked to master on github and still seeing the issue:
This is running on travis CI. Edit: Setting an env variable |
I noticed this problem when enabling the Travis cache on node_packages.
After removing that cache, TravisCI succeed to run all the Karma tests |
@andreasonny83 that's going to slow down your test runs though? So maybe not ideal :) |
I just wanna inform that you can run into the same problem if you for some reason hasn't installed |
@lloydwatkin This solved my problem. Thanks. See : https://travis-ci.org/StefH/PrimeNG-DataTable-Extensions |
#120 seems to me to be the same issue |
#191 trying to fix this, or at least provide a better error message |
I get same issue, solved it by install phantomjs. download http://phantomjs.org/download.html |
@StefH , you're caching the node_modules directory but you're also removing that during your script task. You can just adopt my solution and remove the |
After I run ./node_modules/karma/bin/karma --log-level debug start
I get the error message:
Error during loading "/Users/line/Documents/myfile/angular2.0/angular-webpack/node_modules/karma-phantomjs-launcher" plugin:
Path must be a string. Received null
Here is my karma.config.js:
var webpackConfig = require('./webpack.test');
module.exports = function (config) {
var _config = {
basePath: '',
};
config.set(_config);
};
The text was updated successfully, but these errors were encountered: