PeterStaev / NativeScript-Drop-Down

A NativeScript DropDown widget.
Apache License 2.0
105 stars 65 forks source link

Error after upgrading Nativescript #252

Closed mrwrighty closed 4 years ago

mrwrighty commented 4 years ago

I'm getting this error when using ns run ios or ns run android

Android version runs irrespective of the error but error does display. iOS version fails to compile and run

ERROR in ../node_modules/nativescript-drop-down/drop-down.js Module not found: Error: Can't resolve 'ui/editable-text-base/editable-text-base' in '/Users/nick/Documents/NativeScript/Projects/WFSL/node_modules/nativescript-drop-down' @ ../node_modules/nativescript-drop-down/drop-down.js 6:27-78 @ ./views/settings/settings-page.xml @ . sync (?<!\bAppResources\b.)(?<!.\/\btests\b\/.?).(xml|css|js|(?<!.d.)ts|(?<!\b[\w-]*.)scss)$ @ ./app.js

Version of Dropdown is 5.0.6

I have removed and re-added the plugin

ns doctor returns

✔ Your ANDROID_HOME environment variable is set and points to correct directory. ✔ Your adb from the Android SDK is correctly installed. ✔ The Android SDK is installed. ✔ A compatible Android SDK for compilation is found. ✔ Javac is installed and is configured properly. ✔ The Java Development Kit (JDK) is installed and is configured properly. ✔ Xcode is installed and is configured properly. ✔ xcodeproj is installed and is configured properly. ✔ CocoaPods are installed. ✔ CocoaPods update is not required. ✔ CocoaPods are configured properly. ✔ Your current CocoaPods version is newer than 1.0.0. ✔ Python installed and configured correctly. ✔ The Python 'six' package is found. ✔ Xcode version 11.7.0 satisfies minimum required version 10. ✔ Getting NativeScript components versions information... ✔ Component nativescript has 7.0.8 version and is up to date. ✔ Component @nativescript/core has 7.0.3 version and is up to date. ✔ Component @nativescript/ios has 7.0.0 version and is up to date. ✔ Component tns-android has 6.5.3 version and is up to date.

mrwrighty commented 4 years ago

Just seen the reference to this version not being compatible with Nativescript 7. However when trying to install the pro plugins version with tns plugin add @proplugins/nativescript-drop-down I get

npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/@proplugins%2fnativescript-drop-down - Not found npm ERR! 404 npm ERR! 404 '@proplugins/nativescript-drop-down@latest' is not in the npm registry. npm ERR! 404 You should bug the author to publish it (or use the name yourself!) npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/nick/.npm/_logs/2020-09-17T12_10_57_994Z-debug.log Command npm failed with exit code 1

PeterStaev commented 4 years ago

Hey @mrwrighty , the compatible version is already on the ProPlugins NPM. You need to have an active subscription in order to gain access to it.

mrwrighty commented 4 years ago

We only do ad-hoc simple enterprise apps and cannot justify the subscription for these plugins. its a real shame. I realise you have to make money from this, but our projects cannot justify this as an on-going cost. Nativescript seem to forget that not all companies are big developers with big plugin needs that can justify the monthly cost. Presumably if we pay for a month but then stop paying access to the plugin stops for future changes to the app. There doesn't appear to be an alternative to this feature so may be forced to abandon the project.

PeterStaev commented 4 years ago

@mrwrighty , I can understand that. First of all let me be clear that ProPlugins is unrelated to NativeScript or nStudio. This is an independent initiative I joined, because I could not justify all the time spent to support all my plugins with all the breaking changes coming with almost every version of NS.

You can check the code in this repo and try to make it compatible with NS 7. I would gladly approve a PR from which the whole community can benefit. You can also subscribe for a month and download the package and use it in your apps even after the subscription expires.

mrwrighty commented 4 years ago

Thank you for the clarification. I will have to discuss this with our bosses but I'm not expecting good news.