Giter Site home page Giter Site logo

Comments (5)

bradmartin avatar bradmartin commented on August 17, 2024

I've also added the recyclerview to the build.gradle file, same result.

from sample-groceries.

bradmartin avatar bradmartin commented on August 17, 2024

I changed the .mainModule = "views/list/list" to determine the cause.

The stacktrace: Cannot read property 'extend' of undefined. Which traces to nativescript-telerik-ui/listview/listview.js:72:3.

Tried removing and adding the platform back in with no luck.

I've copied over a version (working in another app) of telerik-ui into the tns_modules folder to replace the ones from the master branch. This also had no effect with the same results.

Any idea on steps to try and resolve this?

from sample-groceries.

tjvantoll avatar tjvantoll commented on August 17, 2024

Hey @bradmartin,

Sorry for the inconvenience. The problem here is probably that the build is not picking up on the build.gradle change. (I say that because I recognize the error.)

Could you try rm -rf platforms/android, tns platform add android, and then adding the line to build.gradle before you run the app for the first time?

We're using Gradle's incremental build feature to speed up builds, but the problem with that is that it occasionally caches things we'd prefer it didn't. Therefore, you have to make sure to add the recyclerview before you do anything else.

Let me know if that works for you. With 1.5 plugins will automatically be able to add lines into the build.gradle file, and this inconvenience should go away.

from sample-groceries.

bradmartin avatar bradmartin commented on August 17, 2024

@tjvantoll - I didn't even think about caching issue. I'll try that later, now that you mentioned it, that's likely the issue. It's a habit of mine to get projects and just add platform and run without doing anything else. Thanks for the tip and I'll let you know if that fixes the issue later on when I have time to try.

from sample-groceries.

bradmartin avatar bradmartin commented on August 17, 2024

Nailed it @tjvantoll - thanks for the heads up on the order or those steps being critical with the current version of {N}. Maybe this will save someone some trouble until the next release. πŸ‘

from sample-groceries.

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.