angular-surveys icon indicating copy to clipboard operation
angular-surveys copied to clipboard

I can no longer clone and install the demo project

Open cordial opened this issue 8 years ago • 0 comments

hey,

Firstly, awesome work, thanks. Just what I need. Secondly, sorry, this might be a stupid issue.

So I originally installed the demo fine and was making edits ok. I then adding ngRoute as a dependency and installed it via bower. After this, although I am not convinced this is related, things went bad.

Running my modified demo app, using gulp serve now gives the follow error on loading -

angular.js:14324 TypeError: Cannot read property 'pages' of undefined at new controller (form-builder.js:1119) at Object.invoke (angular.js:4839) at $controllerInit (angular.js:10692) at nodeLinkFn (angular.js:9569) at angular.js:9977 at processQueue (angular.js:16643) at angular.js:16683 at Scope.$eval (angular.js:17958) at Scope.$digest (angular.js:17772) at Scope.$apply (angular.js:18066)(anonymous function) @ angular.js:14324

Also, the tests no longer pass, with these failures -

PhantomJS 2.1.1 (Mac OS X 0.0.0) form-viewer Replaces the element with the appropriate content FAILED Expected '<!-- ngIf: !ctrl.options.nestedForm --><!-- ngIf: ctrl.options.nestedForm -->' to contain 'Lorem ipsum'. /Users/cordial/formbuilder/builder-angular/test/form-viewer.spec.js:203:41 Expected '<!-- ngIf: !ctrl.options.nestedForm --><!-- ngIf: ctrl.options.nestedForm -->' to contain 'Form description. Lorem ipsum'. /Users/cordial/formbuilder/builder-angular/test/form-viewer.spec.js:204:41 Expected '<!-- ngIf: !ctrl.options.nestedForm --><!-- ngIf: ctrl.options.nestedForm -->' to contain '<button type="button" class="btn btn-default begin-response-button ng-scope" ng-click="ctrl.beginResponse()" translate="mwForm.buttons.begin">'. /Users/cordial/formbuilder/builder-angular/test/form-viewer.spec.js:205:41 PhantomJS 2.1.1 (Mac OS X 0.0.0) form-viewer Replaces the element with the appropriate content with autoStart option enabled FAILED Expected '<!-- ngIf: !ctrl.options.nestedForm --><!-- ngIf: ctrl.options.nestedForm -->' to contain 'Lorem ipsum'. /Users/cordial/formbuilder/builder-angular/test/form-viewer.spec.js:220:41 Expected '<!-- ngIf: !ctrl.options.nestedForm --><!-- ngIf: ctrl.options.nestedForm -->' to contain 'page 1 name'. /Users/cordial/formbuilder/builder-angular/test/form-viewer.spec.js:221:41 Expected '<!-- ngIf: !ctrl.options.nestedForm --><!-- ngIf: ctrl.options.nestedForm -->' to contain '<button type="button" ng-disabled="ctrl.form.$invalid" ng-if="ctrl.buttons.nextPage.visible" class="btn btn-default next-page-button ng-scope" ng-click="ctrl.goToNextPage()" disabled="disabled">'.

So, after much reverting and faffing, I decided to go back to the start and clone/reinstall a new version of the demo in a different location on my machine. However, I am still getting the same errors as above with even the original version of the demo. So, then I thought somehow something global had occured, so i removed all angular files from my user home .npm directory. This didn't help.

Any thoughts or ideas? I am somewhat at a loss now. When I run bower install angular-surveys --save, I get a message making me pick which angular to use, but whichever I choose I still get error messages when running (although the errors are different - the errors above are for 1.6.0).

cheers david

cordial avatar Dec 14 '16 03:12 cordial