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

Cannot find module 'unityARCaller' #67

Open
girish-fuluskar opened this issue Mar 24, 2020 · 5 comments
Open

Cannot find module 'unityARCaller' #67

girish-fuluskar opened this issue Mar 24, 2020 · 5 comments

Comments

@girish-fuluskar
Copy link

Hi,

I have created new Ionic project and added "ionic plugin add https://github.com/yasirkula/UnityIonicIntegration.git"

Following are my Ionic Setup:

Ionic:
ionic (Ionic CLI) : 4.2.1 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 5.0.5
@angular-devkit/build-angular : 0.803.25
@angular-devkit/schematics : 8.3.25
@angular/cli : 8.3.25
@ionic/angular-toolkit : 2.2.0

Cordova:
cordova (Cordova CLI) : 8.1.2 ([email protected])
Cordova Platforms : not available
Cordova Plugins : not available

System:
NodeJS : v13.11.0 (/usr/local/bin/node)
npm : 6.13.7
OS : macOS High Sierra
Xcode : Xcode 9.2 Build version 9C40b

  1. After this I added the mentioned code into .ts file.

  2. Added plugin reference into app.module.ts file as well, "import { unityARCaller } from 'unityARCaller';" OR "import { unityARCaller } from 'UnityIonicIntegration';"

  3. Import reference into .ts file like "import { unityARCaller } from 'unityARCaller';" OR "import { unityARCaller } from 'UnityIonicIntegration';"

While compiling i am getting error as "Cannot find module 'unityARCaller'" or ""Cannot find module 'UnityIonicIntegration'"

Kindly advise.

Regards
Girish D. Fuluskar

@yasirkula
Copy link
Owner

You don't need steps 2 and 3.

@girish-fuluskar
Copy link
Author

Hi,

Thanks for reply.
I followed the instructions but still getting attached errors.

Kindly advise.

Regards
Girish D. Fuluskar
Screen Shot 2020-03-26 at 11 07 06 AM
Screen Shot 2020-03-26 at 11 12 16 AM
Screen Shot 2020-03-26 at 11 05 17 AM

@yasirkula
Copy link
Owner

You can try reinstalling the plugin and changing declare let unityARCaller: any; to declare var unityARCaller: any; but other than that, I don't think I can pinpoint this issue.

@girish-fuluskar
Copy link
Author

Hi,

Thanks for your reply.

I tried your instructions but still the same error.

Do you have sample project on the same which I can download for my reference.

Regards
Girish D. Fuluskar

@yasirkula
Copy link
Owner

I don't have any sample projects, sorry :/

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

No branches or pull requests

2 participants