Skip to content
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

Hook fails if nativescript-nodeify is a devDependency #43

Open
ukch opened this issue Apr 9, 2018 · 0 comments
Open

Hook fails if nativescript-nodeify is a devDependency #43

ukch opened this issue Apr 9, 2018 · 0 comments

Comments

@ukch
Copy link

ukch commented Apr 9, 2018

To reproduce:

  • rm -rf platforms/android
  • tns platform add android
  • tns build android

Here is the output from my terminal. Specifically note the error message at the end:

Preparing project...
Project successfully prepared (android)
Executing after-prepare hook from /path/to/project/hooks/after-prepare/nativescript-dev-babel.js
Processing complete
Executing after-prepare hook from /path/to/project/hooks/after-prepare/nativescript-nodeify.js
Cannot find module '/path/to/project/platforms/android/app/src/main/assets/app/tns_modules/nativescript-nodeify/patch-npm-packages.js'

I believe this is related to #31. Moving the nativescript-nodeify line to dependencies instead of devDependencies solves the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant