-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin installation fails to install file 'node_modules\nativescript-i18n\angular.ts' #33
Comments
@ivoeersels pushed to npm, could you have a look? |
Looks like you fixed it @rborn |
However, after switching to version 1.1 of nativescript-i18n plugin my project no longer builds. Executing before-prepare hook from <MY_PROJECT_PATH>\hooks\before-prepar |
Did you try to cleanup the project first and run a |
I think so. I npm uninstalled this plugin, then made sure to update the version number in package.json to 0.1.1 and ran 'npm install' so the new version got installled. Did I miss something? |
Delete |
Version is unusable. Installation went ok. I've already tried to remove all directories you said. Nothing changed. Here's the error thrown when I try to build the project:
I am back to version 0.0.9 (no version 0.1.0 8-|) and everything's alright again. Off-topic: Could it return the key when the latter is no defined? Thanks |
I also rolled back to 0.0.9 as I need this to work now. Didn't try the directory cleanup mentioned by @rborn yet however. |
@ivoeersels @zweimal sorry guys, it should be fixed now. If it's not working I might need a test project as the demo one in this repo seems to work fine. |
I did the same as before
This time no errors anymore! |
@ivoeersels woohoo 😆 |
before-prepare hook worked! |
I followed the instructions and installed via command 'npm install --save nativescript-i18n'
But afterwards my builds would fail as NativeScript could not load the module 'nativescript-i18n/angular'.
C:\gitprojects\cb_poc_app>tns info
All NativeScript components versions information
┌────────────┬────────── ┬─────────┬────────┐
│ Component │ Current version │ Latest version │ Information │
│ nativescript │ 2.4.2 │ 2.4.2 │ Up to date │
│ tns-core-modules │ 2.4.4 │ 2.4.4 │ Up to date │
│ tns-android │ 2.4.1 │ 2.4.1 │ Up to date │
│ tns-ios │ │ 2.4.0 │ Not installed │
└────────────┴──────────┴─────────┴─────────┘
I assume the support for Angular is quite new and maybe a mistake was made when submitting this plugin to NPM?
After I manually downloaded the file from 'https://github.com/rborn/nativescript-i18n/blob/master/angular.ts' (which matched my current version '0.0.9' of the plugin 'nativescript-i18n' all worked fine.
So please check your NPM module.
The text was updated successfully, but these errors were encountered: