Especializa / nativescript-ng-shadow

Angular directive to apply shadows to native elements according to the elevation level guidelines of material design specification
Apache License 2.0
54 stars 38 forks source link

Could not find module after installation #24

Open muuvmuuv opened 5 years ago

muuvmuuv commented 5 years ago

Make sure to check the demo app(s) for sample usage

Make sure to check the existing issues in this repository

If the demo apps cannot help and there is no issue for your problem, tell us about it

Please, ensure your title is less than 63 characters long and starts with a capital letter.

Which platform(s) does your issue occur on?

Please, provide the following version numbers that your issue occurs with:

Please, tell us how to recreate the issue in as much detail as possible.

Describe the steps to reproduce it.

I'm using the files from the {N} Angular Tutorial and added this plugin like it is described in the README. When I now start my application with the plugin loaded in my app.module.ts it is showing me the following error:

Start syncing changes for platform ios.
Skipping prepare.
Successfully synced changes for platform ios.
LOG from device iPhone: 2018-11-13 21:38:59.090 nsplaydev[4164:1757408] ***** Fatal JavaScript exception - application has been terminated. *****
2018-11-13 21:38:59.091 nsplaydev[4164:1757408] Native stack trace:
1   0x104887f84 NativeScript::reportFatalErrorBeforeShutdown(JSC::ExecState*, JSC::Exception*, bool, bool)
2   0x1048c06bc -[TNSRuntime executeModule:referredBy:]
3   0x104614154 -[UIApplication(PlayLiveSync) swizzled_executeModule:]
4   0x10409b4f4
5   0x21ed06bb4 <redacted>
2018-11-13 21:38:59.092 nsplaydev[4164:1757408] JavaScript stack trace:
2018-11-13 21:38:59.092 nsplaydev[4164:1757408] 1   require@file:///app/app.module.js:9:39
2   anonymous@file:///app/app.module.js:9:39
3   evaluate@[native code]
4   moduleEvaluation@[native code]
5   promiseReactionJob@[native code]
6   require@[native code]
7   anonymous@file:///app/main.js:6:27
8   evaluate@[native code]
9   moduleEvaluation@[native code]
10  promiseReactionJob@[native code]
2018-11-13 21:38:59.092 nsplaydev[4164:1757408] JavaScript error:
file:///app/app.module.js:9:39: JS ERROR Error: Could not find module 'nativescript-ng-shadow'. Computed path '/var/mobile/Containers/Data/Application/D0C52803-CC7E-486B-BA79-0C6C062291E1/Documents/Playground/LiveSync/app/tns_modules/nativescript-ng-shadow'.
2018-11-13 21:38:59.093 nsplaydev[4164:1757408] PlayLiveSync: Uncaught Exception
2018-11-13 21:38:59.094 nsplaydev[4164:1757408] *** JavaScript call stack:
(

)
2018-11-13 21:38:59.094 nsplaydev[4164:1757408] *** Terminating app due to uncaught exception 'NativeScript encountered a fatal error: Error: Could not find module 'nativescript-ng-shadow'. Computed path '/var/mobile/Containers/Data/Application/D0C52803-CC7E-486B-BA79-0C6C062291E1/Documents/Playground/LiveSync/app/tns_modules/nativescript-ng-shadow'.
 at
1   require@file:///app/app.module.js:9:39
2   anonymous@file:///app/app.module.js:9:39
3   evaluate@[native code]
4   moduleEvaluation@[native code]
5   promiseReactionJob@[native code]
6   require@[native code]
7   anonymous@file:///app/main.js:6:27
8   evaluate@[native code]
9   moduleEvaluation@[native code]
10  promiseReactionJob@[native code]
', reason: '(null)'
*** First throw call stack:
(0x21f2bbea0 0x21e48da40 0x1048882d4 0x1048c06bc 0x104614154 0x10409b4f4 0x21ed06bb4)
libc++abi.dylib: terminating with uncaught exception of type NSException
2018-11-13 21:38:59.094 nsplaydev[4164:1757408] PlayLiveSync: Uncaught Exception
muuvmuuv commented 5 years ago

FYI: The plugin is installed and TSLint isn't telling me any errors, so it should find the plugin