yasirkula / UnityIonicIntegration

A guide to integrating Unity 3D content into an Ionic app and sending messages between them (for Android & iOS)(tested with Vuforia plugin)
104 stars 32 forks source link

Cannot find module 'unityARCaller' #67

Open girish-fuluskar opened 4 years ago

girish-fuluskar commented 4 years ago

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 (cordova-lib@8.1.1) 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 commented 4 years ago

You don't need steps 2 and 3.

girish-fuluskar commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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