Giter Site home page Giter Site logo

Comments (2)

bradmartin avatar bradmartin commented on May 22, 2024

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 [email protected] 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.

[email protected] postinstall /.../nativescript-cardview/demo/node_modules/nativescript-dev-typescript
node postinstall.js

Project already targets TypeScript ^1.8.10
[email protected] node_modules/nativescript-cardview

[email protected] node_modules/lazy

[email protected] node_modules/filewalker
└── [email protected]

[email protected] node_modules/typescript

[email protected] node_modules/nativescript-dev-typescript
└── [email protected] ([email protected], [email protected])

[email protected] node_modules/tns-core-modules
└── [email protected]

[email protected] node_modules/babylon
└── [email protected] ([email protected])

[email protected] node_modules/babel-traverse
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected]
└── [email protected] ([email protected], [email protected])

[email protected] node_modules/babel-types
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected] ([email protected], [email protected])
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
#26, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AFulhKbEcml1AgGakNZXNmYu7VGmsdr_ks5qbU0MgaJpZM4JZLOc
.

from nativescript-cardview.

subcontact avatar subcontact commented on May 22, 2024

That worked. Thanks!

from nativescript-cardview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.