Skip to content

shell:depNSInit - Task "default" not found. #9

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

Closed
NathanWalker opened this issue Jul 25, 2015 · 9 comments
Closed

shell:depNSInit - Task "default" not found. #9

NathanWalker opened this issue Jul 25, 2015 · 9 comments

Comments

@NathanWalker
Copy link
Contributor

When getting the project setup and you get to the grunt prepare step, it runs a series of tasks where this happens...

Running "shell:depNSInit" (shell) task

node-gyp rebuild

SOLINK_MODULE(target) Release/.node
CXX(target) Release/obj.target/fse/fsevents.o
SOLINK_MODULE(target) Release/fse.node
grunt-ts@4.1.2 ../../node_modules/grunt-ts
├── rimraf@2.2.6
├── ncp@0.5.1
├── underscore@1.5.1
├── es6-promise@0.1.2
├── underscore.string@2.3.3
├── lodash@2.4.1
├── csproj2ts@0.0.2 (es6-promise@2.3.0, xml2js@0.4.9, lodash@3.10.0)
├── typescript@1.4.1
└── chokidar@1.0.5 (arrify@1.0.0, path-is-absolute@1.0.0, is-glob@1.1.3, glob-parent@1.2.0, async-each@0.1.6, is-binary-path@1.0.1, readdirp@1.4.0, anymatch@1.3.0, fsevents@0.3.6)
src/
Warning: Task "default" not found. Use --force to continue.

Aborted due to warnings.
Warning: Command failed: /bin/sh -c npm install&&grunt --no-runtslint
Use --force to continue.

Aborted due to warnings.

@hdeshev
Copy link
Contributor

hdeshev commented Jul 29, 2015

@NathanWalker, this is weird. It looks like the grunt task runner hasn't found its gruntfile.js or is running in a different folder, but I can't tell for sure. Can you tell me if your submodules have been updated correctly and the deps/NativeScript folder contains the {N} modules' code?

Also, what OS are you running? I just tested this on Windows and Linux and while I got bitten by other problems (like updated definitions brought by the tsd tool that need some tweaking to work), I did not get the error you pasted above.

@hdeshev
Copy link
Contributor

hdeshev commented Jul 29, 2015

Hit the "Comment" button too soon. I fixed the tsd problem in this branch: https://github.com/NativeScript/nativescript-angular/tree/exclude-tsd-dts

I'll merge it to master in a day or two.

@NathanWalker
Copy link
Contributor Author

That branch seems to fix it 👍 thanks!

@NathanWalker
Copy link
Contributor Author

Nvm :(

I get this when I grunt ng-sample:

Running "ts:build" (ts) task
Compiling...
Using the custom compiler : node_modules/typescript/bin/tsc
/Users/nathan/Documents/github_projects/nativescript-stuff/nativescript-angular/ng-sample/src/angular2/src/facade/lang.ts(12,36): error TS2311: A class may only extend another class.
/Users/nathan/Documents/github_projects/nativescript-stuff/nativescript-angular/ng-sample/src/angular2/src/facade/lang.ts(16,5): error TS2335: 'super' can only be referenced in a derived class.
/Users/nathan/Documents/github_projects/nativescript-stuff/nativescript-angular/ng-sample/src/nativescript-angular/application.ts(31,10): error TS2346: Supplied parameters do not match any signature of call target.
/Users/nathan/Documents/github_projects/nativescript-stuff/nativescript-angular/ng-sample/src/nativescript-angular/renderer.ts(4,72): error TS2305: Module '"/Users/nathan/Documents/github_projects/nativescript-stuff/nativescript-angular/ng-sample/src/angular2/src/render/api"' has no exported member 'EventDispatcher'.
/Users/nathan/Documents/github_projects/nativescript-stuff/nativescript-angular/ng-sample/src/nativescript-angular/renderer.ts(37,14): error TS2415: Class 'NativeScriptRenderer' incorrectly extends base class 'Renderer'.
  Types of property 'createRootHostView' are incompatible.
    Type '(hostProtoViewRef: RenderProtoViewRef) => RenderViewRef' is not assignable to type '(hostProtoViewRef: RenderProtoViewRef, fragmentCount: number, hostElementSelector: string) => Ren...'.
      Type 'RenderViewRef' is not assignable to type 'RenderViewWithFragments'.
        Property 'viewRef' is missing in type 'RenderViewRef'.
/Users/nathan/Documents/github_projects/nativescript-stuff/nativescript-angular/ng-sample/src/nativescript-angular/renderer.ts(68,57): error TS2339: Property 'boundElementIndex' does not exist on type 'RenderElementRef'.
/Users/nathan/Documents/github_projects/nativescript-stuff/nativescript-angular/ng-sample/src/nativescript-angular/renderer.ts(86,96): error TS2339: Property 'boundElementIndex' does not exist on type 'RenderElementRef'.
/Users/nathan/Documents/github_projects/nativescript-stuff/nativescript-angular/ng-sample/src/nativescript-angular/renderer.ts(89,57): error TS2339: Property 'boundElementIndex' does not exist on type 'RenderElementRef'.
/Users/nathan/Documents/github_projects/nativescript-stuff/nativescript-angular/ng-sample/src/nativescript-angular/renderer.ts(103,57): error TS2339: Property 'boundElementIndex' does not exist on type 'RenderElementRef'.
/Users/nathan/Documents/github_projects/nativescript-stuff/nativescript-angular/ng-sample/src/nativescript-angular/renderer.ts(126,47): error TS2339: Property 'boundElementIndex' does not exist on type 'RenderElementRef'.
/Users/nathan/Documents/github_projects/nativescript-stuff/nativescript-angular/ng-sample/src/nativescript-angular/renderer.ts(138,47): error TS2339: Property 'boundElementIndex' does not exist on type 'RenderElementRef'.
/Users/nathan/Documents/github_projects/nativescript-stuff/nativescript-angular/ng-sample/src/nativescript-angular/renderer.ts(164,19): error TS2339: Property 'rootBindingOffset' does not exist on type 'DomProtoView'.
/Users/nathan/Documents/github_projects/nativescript-stuff/nativescript-angular/ng-sample/src/nativescript-angular/renderer.ts(165,60): error TS2339: Property 'element' does not exist on type 'DomProtoView'.
/Users/nathan/Documents/github_projects/nativescript-stuff/nativescript-angular/ng-sample/src/nativescript-angular/renderer.ts(167,61): error TS2339: Property 'element' does not exist on type 'DomProtoView'.
/Users/nathan/Documents/github_projects/nativescript-stuff/nativescript-angular/ng-sample/src/typings/nativescript/ui/action-bar/action-bar.d.ts(14,18): error TS2420: Class 'ActionBar' incorrectly implements interface 'AddArrayFromBuilder'.
  Property '_addArrayFromBuilder' is missing in type 'ActionBar'.
/Users/nathan/Documents/github_projects/nativescript-stuff/nativescript-angular/ng-sample/src/typings/nativescript/ui/action-bar/action-bar.d.ts(14,18): error TS2420: Class 'ActionBar' incorrectly implements interface 'AddChildFromBuilder'.
  Property '_addChildFromBuilder' is missing in type 'ActionBar'.
/Users/nathan/Documents/github_projects/nativescript-stuff/nativescript-angular/ng-sample/src/typings/nativescript/ui/content-view/content-view.d.ts(11,11): error TS2420: Class 'ContentView' incorrectly implements interface 'AddChildFromBuilder'.
  Property '_addChildFromBuilder' is missing in type 'ContentView'.

>> 17 non-emit-preventing type warnings  
>> Error: tsc return code: 1
Warning: Task "ts:build" failed. Use --force to continue.

Aborted due to warnings.
Warning: Command failed: /bin/sh -c grunt app-full
 Use --force to continue.

Aborted due to warnings.

@hdeshev
Copy link
Contributor

hdeshev commented Jul 30, 2015

Those RenderViewWithFragments shouldn't be there -- the deps/angular submodule shouldn't be updated to the latest fragments-based code (I'm working on supporting that one right now).

You could either wait 1-2 days until I get it running and pushed to master, or check if the modules below deps point to the correct SHA's. Did you by any chance clone and get the latest angular codebase in there?

@NathanWalker
Copy link
Contributor Author

I'll wait til' you get it merged to master, no worries. Thank @hdeshev !

Not sure what the deal is with the submodules. I've honestly never been a big fan of git submodules, always something funky. Seems using node and package.json (or bower) to manage all that works better.

@hdeshev
Copy link
Contributor

hdeshev commented Jul 30, 2015

We'll be switching to the angular alpha builds on npm soon. I'm really looking forward to getting rid of submodules too. :-)

@NathanWalker
Copy link
Contributor Author

Great to hear. I'd love to contribute to this project once I can at least run it for the first time 👍

@NathanWalker
Copy link
Contributor Author

This is no longer an issue for me. The usage of webpack is a welcome addition, nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants