-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Same as the previous issue (#7). I tried on ionic 4, for more details: `Ionic:
ionic (Ionic CLI) : 4.9.0 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.0.0
@angular-devkit/build-angular : 0.12.3
@angular-devkit/schematics : 7.2.3
@angular/cli : 7.2.3
@ionic/angular-toolkit : 1.2.3
System:
NodeJS : v10.15.0 (/usr/local/bin/node)
npm : 6.4.1
OS : macOS Mojave`
How to reproduce
Start a blank project with Ionic CLI:
ionic start myProject
Go in myProject directory and follow the Matchmore npm installation instructions as described in README:
npm install @matchmore/matchmore --save
Edit src/app/app.component.ts to add matchmore as described in README:
import { Platform } from 'ionic-angular';
import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
import { Manager } from "@matchmore/matchmore";
import { HomePage } from '../pages/home/home';
@Component({
templateUrl: 'app.html'
})
export class MyApp {
rootPage:any = HomePage;
manager: any;
constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen) {
platform.ready().then(() => {
// Okay, so the platform is ready and our plugins are available.
// Here you can do any higher level native things you might need.
statusBar.styleDefault();
splashScreen.hide();
this.manager = new Manager(
"<Your api key>"
)
});
}
}Start ionic with: ionic serve
Then use the minimum config, like specified in the documentation:
"<Your api key>"
)````
After saving or building, it fails to compile and it shows this error:
`
[ng] ERROR in ./node_modules/@matchmore/matchmore/dist/api/index.js
[ng] Module not found: Error: Can't resolve 'ApiClient' in '/Users/Admin/Desktop/Apps/ionic/new_ionic/new_ionic/node_modules/@matchmore/matchmore/dist/api'
[ng] ERROR in ./node_modules/@matchmore/matchmore/dist/api/index.js
[ng] Module not found: Error: Can't resolve 'api/DeviceApi' in '/Users/Admin/Desktop/Apps/ionic/new_ionic/new_ionic/node_modules/@matchmore/matchmore/dist/api'
[ng] ERROR in ./node_modules/@matchmore/matchmore/dist/api/index.js
[ng] Module not found: Error: Can't resolve 'api/LocationApi' in '/Users/Admin/Desktop/Apps/ionic/new_ionic/new_ionic/node_modules/@matchmore/matchmore/dist/api'
[ng] ERROR in ./node_modules/@matchmore/matchmore/dist/api/index.js
[ng] Module not found: Error: Can't resolve 'api/MatchesApi' in '/Users/Admin/Desktop/Apps/ionic/new_ionic/new_ionic/node_modules/@matchmore/matchmore/dist/api'
[ng] ERROR in ./node_modules/@matchmore/matchmore/dist/api/index.js
[ng] Module not found: Error: Can't resolve 'api/PublicationApi' in '/Users/Admin/Desktop/Apps/ionic/new_ionic/new_ionic/node_modules/@matchmore/matchmore/dist/api'
[ng] ERROR in ./node_modules/@matchmore/matchmore/dist/api/index.js
[ng] Module not found: Error: Can't resolve 'api/SubscriptionApi' in '/Users/Admin/Desktop/Apps/ionic/new_ionic/new_ionic/node_modules/@matchmore/matchmore/dist/api'
[ng] ERROR in ./node_modules/@matchmore/matchmore/dist/api/index.js
[ng] Module not found: Error: Can't resolve 'model/APIError' in '/Users/Admin/Desktop/Apps/ionic/new_ionic/new_ionic/node_modules/@matchmore/matchmore/dist/api'
[ng] ERROR in ./node_modules/@matchmore/matchmore/dist/api/index.js
[ng] Module not found: Error: Can't resolve 'model/Device' in '/Users/Admin/Desktop/Apps/ionic/new_ionic/new_ionic/node_modules/@matchmore/matchmore/dist/api'
[ng] ERROR in ./node_modules/@matchmore/matchmore/dist/api/index.js
[ng] Module not found: Error: Can't resolve 'model/DeviceType' in '/Users/Admin/Desktop/Apps/ionic/new_ionic/new_ionic/node_modules/@matchmore/matchmore/dist/api'
[ng] ERROR in ./node_modules/@matchmore/matchmore/dist/api/index.js
[ng] Module not found: Error: Can't resolve 'model/DeviceUpdate' in '/Users/Admin/Desktop/Apps/ionic/new_ionic/new_ionic/node_modules/@matchmore/matchmore/dist/api'
[ng] ERROR in ./node_modules/@matchmore/matchmore/dist/api/index.js
[ng] Module not found: Error: Can't resolve 'model/Devices' in '/Users/Admin/Desktop/Apps/ionic/new_ionic/new_ionic/node_modules/@matchmore/matchmore/dist/api'
[ng] ERROR in ./node_modules/@matchmore/matchmore/dist/api/index.js
[ng] Module not found: Error: Can't resolve 'model/IBeaconDevice' in '/Users/Admin/Desktop/Apps/ionic/new_ionic/new_ionic/node_modules/@matchmore/matchmore/dist/api'
[ng] ERROR in ./node_modules/@matchmore/matchmore/dist/api/index.js
[ng] Module not found: Error: Can't resolve 'model/IBeaconTriple' in '/Users/Admin/Desktop/Apps/ionic/new_ionic/new_ionic/node_modules/@matchmore/matchmore/dist/api'
[ng] ERROR in ./node_modules/@matchmore/matchmore/dist/api/index.js
[ng] Module not found: Error: Can't resolve 'model/IBeaconTriples' in '/Users/Admin/Desktop/Apps/ionic/new_ionic/new_ionic/node_modules/@matchmore/matchmore/dist/api'
[ng] ERROR in ./node_modules/@matchmore/matchmore/dist/api/index.js
[ng] Module not found: Error: Can't resolve 'model/Location' in '/Users/Admin/Desktop/Apps/ionic/new_ionic/new_ionic/node_modules/@matchmore/matchmore/dist/api'
[ng] ERROR in ./node_modules/@matchmore/matchmore/dist/api/index.js
[ng] Module not found: Error: Can't resolve 'model/Match' in '/Users/Admin/Desktop/Apps/ionic/new_ionic/new_ionic/node_modules/@matchmore/matchmore/dist/api'
[ng] ERROR in ./node_modules/@matchmore/matchmore/dist/api/index.js
[ng] Module not found: Error: Can't resolve 'model/Matches' in '/Users/Admin/Desktop/Apps/ionic/new_ionic/new_ionic/node_modules/@matchmore/matchmore/dist/api'
[ng] ERROR in ./node_modules/@matchmore/matchmore/dist/api/index.js
[ng] Module not found: Error: Can't resolve 'model/MobileDevice' in '/Users/Admin/Desktop/Apps/ionic/new_ionic/new_ionic/node_modules/@matchmore/matchmore/dist/api'
[ng] ERROR in ./node_modules/@matchmore/matchmore/dist/api/index.js
[ng] Module not found: Error: Can't resolve 'model/PinDevice' in '/Users/Admin/Desktop/Apps/ionic/new_ionic/new_ionic/node_modules/@matchmore/matchmore/dist/api'
[ng] ERROR in ./node_modules/@matchmore/matchmore/dist/api/index.js
[ng] Module not found: Error: Can't resolve 'model/ProximityEvent' in '/Users/Admin/Desktop/Apps/ionic/new_ionic/new_ionic/node_modules/@matchmore/matchmore/dist/api'
[ng] ERROR in ./node_modules/@matchmore/matchmore/dist/api/index.js
[ng] Module not found: Error: Can't resolve 'model/Publication' in '/Users/Admin/Desktop/Apps/ionic/new_ionic/new_ionic/node_modules/@matchmore/matchmore/dist/api'
[ng] ERROR in ./node_modules/@matchmore/matchmore/dist/api/index.js
[ng] Module not found: Error: Can't resolve 'model/Publications' in '/Users/Admin/Desktop/Apps/ionic/new_ionic/new_ionic/node_modules/@matchmore/matchmore/dist/api'
[ng] ERROR in ./node_modules/@matchmore/matchmore/dist/api/index.js
[ng] Module not found: Error: Can't resolve 'model/Subscription' in '/Users/Admin/Desktop/Apps/ionic/new_ionic/new_ionic/node_modules/@matchmore/matchmore/dist/api'
[ng] ERROR in ./node_modules/@matchmore/matchmore/dist/api/index.js
[ng] Module not found: Error: Can't resolve 'model/Subscriptions' in '/Users/Admin/Desktop/Apps/ionic/new_ionic/new_ionic/node_modules/@matchmore/matchmore/dist/api'
`