nativescript-nodeify icon indicating copy to clipboard operation
nativescript-nodeify copied to clipboard

Hook fails if nativescript-nodeify is a devDependency

Open ukch opened this issue 7 years ago • 0 comments

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.

ukch avatar Apr 09 '18 14:04 ukch