Closed subcontact closed 8 years ago
Ehh not your fault really. Looks like the typescript definition file isn't
100% correct. I need to look at this and correct and typescript issues,
which is what's happening. When you're running this app, there might be a
tsconfig.json file in the app folder. Theres a typescript flag
noEmitOnError
I think. Set it to false and that will allow the compiler
to keep running after errors/warnings. There's a few different things you
can try when a typescript error is thrown, but hard to say without seeing
it on what is best.
Let me know if the flag set to false doesn't work.
On Sun, Jul 31, 2016, 8:34 PM subcontact notifications@github.com wrote:
Hi, I'm new to NS so I'm sure this issue is my own doing... I'm trying to launch the demo after cloning the repo but I'm getting the following issue:
Any pointers?.. Nice looking module by the way!
node_modules/nativescript-cardview/index.d.ts(1,15): error TS2306: File '.../nativescript-cardview/demo/node_modules/nativescript-cardview/cardview.d.ts' is not a module.
tns --version 2.1.1
git clone https://github.com/bradmartin/nativescript-cardview.git
cd /.../nativescript-cardview/demo
tns platform add ios Copying template files... Project successfully created.
tns run --emulator ios npm WARN package.json @ No description npm WARN package.json @ No repository field. npm WARN package.json @ No README data npm WARN package.json @ No license field.
nativescript-dev-typescript@0.3.2 postinstall /.../nativescript-cardview/demo/node_modules/nativescript-dev-typescript node postinstall.js
Project already targets TypeScript ^1.8.10 nativescript-cardview@1.1.9 node_modules/nativescript-cardview
lazy@1.0.11 node_modules/lazy
filewalker@0.1.2 node_modules/filewalker └── fqueue@0.0.0
typescript@1.8.10 node_modules/typescript
nativescript-dev-typescript@0.3.2 node_modules/nativescript-dev-typescript └── nativescript-hook@0.2.1 (mkdirp@0.5.1, glob@6.0.4)
tns-core-modules@2.1.0 node_modules/tns-core-modules └── tns-core-modules-widgets@2.1.4
babylon@6.7.0 node_modules/babylon └── babel-runtime@5.8.38 (core-js@1.2.7)
babel-traverse@6.8.0 node_modules/babel-traverse ├── babel-messages@6.8.0 ├── globals@8.18.0 ├── debug@2.2.0 (ms@0.7.1) ├── invariant@2.2.1 (loose-envify@1.2.0) ├── repeating@1.1.3 (is-finite@1.0.1) ├── babel-code-frame@6.11.0 (js-tokens@2.0.0, esutils@2.0.2, chalk@1.1.3) ├── lodash@3.10.1 └── babel-runtime@6.11.6 (regenerator-runtime@0.9.5, core-js@2.4.1)
babel-types@6.8.1 node_modules/babel-types ├── to-fast-properties@1.0.2 ├── esutils@2.0.2 ├── lodash@3.10.1 └── babel-runtime@6.11.6 (regenerator-runtime@0.9.5, core-js@2.4.1) Executing before-prepare hook from /.../nativescript-cardview/demo/hooks/before-prepare/nativescript-dev-typescript.js Found peer TypeScript 1.8.10 node_modules/nativescript-cardview/index.d.ts(1,15): error TS2306: File '/.../nativescript-cardview/demo/node_modules/nativescript-cardview/cardview.d.ts' is not a module.
TypeScript compiler failed with exit code 1
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bradmartin/nativescript-cardview/issues/26, or mute the thread https://github.com/notifications/unsubscribe-auth/AFulhKbEcml1AgGakNZXNmYu7VGmsdr_ks5qbU0MgaJpZM4JZLOc .
That worked. Thanks!
Hi, I'm new to NS so I'm sure this issue is my own doing... I'm trying to launch the demo after cloning the repo but I'm getting the following issue:
Any pointers?.. Nice looking module by the way!