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

AngularCLI update to Meteor 1.8.0.1 and Angular 7.1.1 #1957

Conversation

georgyberdyshev
Copy link
Contributor

Hello @ardatan,

this is an update of the AngularCLI example to Meteor 1.8.0.1 and Angular 7.1.1

As workaround @types/meteor needs to be fixed to "1.4.14"
See Urigo/meteor-rxjs#230

There is a remaining error: ReferenceError: Mongo is not defined
This error occurs regardless of the updates in this PR.

Adding Mongo specific imports to meteor-client.config.json does not work.
Urigo/meteor-client-bundler#89 (comment)
Urigo/meteor-client-bundler#5 (comment)

To reproduce:
npm run start for a dev server. Navigate to http://localhost:4200/.

@ardatan Any idea?

Error:

meteor-client.js:22832 Uncaught TypeError: Cannot read property 'versions' of undefined
    at autoupdate_client.js (meteor-client.js:22832)
    at fileEvaluate (meteor-client.js:1550)
    at Module.require (meteor-client.js:1453)
    at _require (meteor-client.js:1472)
    at meteor-client.js:23004
    at meteor-client.js:23010
ObservableCollection.js:37 Uncaught ReferenceError: Mongo is not defined
    at new Collection (ObservableCollection.js:37)
    at Module../api/server/collections.ts (collections.ts:6)
    at __webpack_require__ (bootstrap:78)
    at Module../src/app/app.component.ts (main.js:110)
    at __webpack_require__ (bootstrap:78)
    at Module../src/app/app.module.ts (app.component.ts:13)
    at __webpack_require__ (bootstrap:78)
    at Module../src/main.ts (main.ts:1)
    at __webpack_require__ (bootstrap:78)
    at Object.0 (main.ts:12)

Thanks, Georgy

@georgyberdyshev
Copy link
Contributor Author

Hello @ardatan,

do you have any suggestions on how to fix the meteor-client-bundler configuration ("ReferenceError: Mongo is not defined")?

Thanks, Georgy

@KeithGillette
Copy link

KeithGillette commented Dec 6, 2018

@georgyberdyshev — as a work-around, I have pinned [email protected] in meteor-client.config.json: "release": "1.7.0.5",

At least, for the Meteor calls we are using on the client, this is compatible with release 1.8.0.1 on the server.

@ardatan ardatan merged commit 144ca73 into Urigo:master Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants