Closed rosunad closed 6 years ago
Are you sure you've installed npm dependencies using meteor npm install
for meteor and npm install
for webpack?
Yes, I did it with meteor npm.
Anyway, in the tutorial, using Meteor 1.6 RC7 ask to install the packages with npm. But using 1.6.1.3, as you can read in the console's output, ask to install with meteor npm
@rosunad could you share your package.json
?
Sure
{
"name": "protocoloMeteor",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve",
"meteor-client:bundle": "meteor-client bundle -s api"
},
"dependencies": {
"@angular/animations": "5.2.11",
"@angular/common": "5.2.11",
"@angular/compiler": "5.2.11",
"@angular/compiler-cli": "5.2.11",
"@angular/core": "5.2.11",
"@angular/forms": "5.2.11",
"@angular/http": "5.2.11",
"@angular/platform-browser": "5.2.11",
"@angular/platform-browser-dynamic": "5.2.11",
"@ionic-native/core": "4.7.0",
"@ionic-native/splash-screen": "4.7.0",
"@ionic-native/status-bar": "4.7.0",
"@ionic/storage": "2.1.3",
"babel-runtime": "^6.26.0",
"ionic-angular": "3.9.2",
"ionicons": "3.0.0",
"meteor-node-stubs": "^0.4.1",
"meteor-rxjs": "^0.4.14",
"rxjs": "5.5.11",
"sw-toolbox": "3.6.0",
"zone.js": "0.8.26"
},
"devDependencies": {
"@ionic/app-scripts": "3.1.10",
"@types/meteor": "^1.4.16",
"tmp": "0.0.33",
"typescript": "^2.9.2",
"typescript-extends": "^1.0.1"
},
"description": "An Ionic project",
"config": {
"ionic_webpack": "./webpack.config.js"
}
}
You don't have @babel/runtime
and webpack
in your package.json
. You need to install both, and try again.
After install @babel/runtime and webpack packages the initial error has dissapeared but I still received the rest of the error message:
[08:33:47] transpile started ...
[08:33:51] typescript: node_modules/@types/meteor/mongo.d.ts, line: 49
';' expected.
L48: $all?: T[],
L49: $elemMatch?: T extends {} ? Query<T> : FieldExpression<T>,
L50: $size?: number,
[08:33:51] typescript: node_modules/@types/meteor/mongo.d.ts, line: 49
Property or signature expected.
L48: $all?: T[],
L49: $elemMatch?: T extends {} ? Query<T> : FieldExpression<T>,
L50: $size?: number,
[08:33:51] typescript: node_modules/@types/meteor/mongo.d.ts, line: 49
Declaration or statement expected.
..........and much more in the same way
So, part of the problem was mongo.d.ts. I was using @types/meteor 1.4.16 version so I tried with one older (1.4.14) and everything is working now.
Thank you!
Following the tutorial (https://angular-meteor.com/tutorials/whatsapp2/ionic/setup) I'm facing a problem that I'm stuck with.
When I add @babel/runtime at meteor server, the next time I run 'ionic serve' I get an error about webpack.
Meteor version 1.6.1.3.
This is the error that give me Meteor:
After add @babel/runtime, 'ionic serve' give me:
I've created a Github repo, the last commit is just before you need to import @babel/runtime
https://github.com/rosunad/protocoloMeteor