Coder Social home page Coder Social logo

Comments (4)

andreassimon avatar andreassimon commented on July 24, 2024

Same here

from nativescript-image-filters.

bradmartin avatar bradmartin commented on July 24, 2024

One possible solution to avoid this is to tell the TS compiler to not look into node_modules as you should not be modifying or processing anything in node_modules.

Can you make sure your project's tsconfig.json has the exclude array with "node_modules" listed? This should tell the compiler to not look into node_modules. Also, we can just drop it from the index.d.ts for this module :)

http://www.typescriptlang.org/docs/handbook/tsconfig-json.html

from nativescript-image-filters.

bradmartin avatar bradmartin commented on July 24, 2024

Pub'd 2.0.1 - LMK if it helps

from nativescript-image-filters.

andreassimon avatar andreassimon commented on July 24, 2024

Unfortunately, it does not help:

$ npm update
+ [email protected]
updated 1 package in 0.587s

$ tns debug android
Searching for devices...
Executing before-prepare hook from .../hooks/before-prepare/nativescript-dev-typescript.js
Found peer TypeScript 2.6.2
node_modules/nativescript-image-filters/index.d.ts(49,15): error TS2503: Cannot find namespace 'android'.

Unable to apply changes on device: emulator-5554. Error is: TypeScript compiler failed with exit code 1.
Executing after-watch hook from .../hooks/after-watch/nativescript-dev-typescript.js

What about moving "tns-platform-declarations": "^3.0.0" from devDependencies to dependencies?

from nativescript-image-filters.

Related Issues (15)

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.