Giter Site home page Giter Site logo

angularcli-meteor's People

Contributors

angular-cli avatar darkbasic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

angularcli-meteor's Issues

Cannot find namespace error

I'm combining this approach with the angular-meteor tutorial (which is very similar). It's almost working but i'm getting the following errors:

ERROR in api/node_modules/meteor-rxjs/dist/MeteorObservable.d.ts(123,34): error TS2503: Cannot find namespace 'Tracker'.
api/node_modules/meteor-rxjs/dist/ObservableCollection.d.ts(3,19): error TS2503: Cannot find namespace 'Mongo'.
api/node_modules/meteor-rxjs/dist/ObservableCollection.d.ts(4,19): error TS2503: Cannot find namespace 'Mongo'.
api/node_modules/meteor-rxjs/dist/ObservableCollection.d.ts(5,24): error TS2503: Cannot find namespace 'Mongo'.
api/node_modules/meteor-rxjs/dist/ObservableCollection.d.ts(6,25): error TS2503: Cannot find namespace 'Mongo'.
api/node_modules/meteor-rxjs/dist/ObservableCollection.d.ts(7,19): error TS2503: Cannot find namespace 'Mongo'.
api/node_modules/meteor-rxjs/dist/ObservableCollection.d.ts(28,42): error TS2503: Cannot find namespace 'Mongo'.
api/node_modules/meteor-rxjs/dist/ObservableCollection.d.ts(47,46): error TS2503: Cannot find namespace 'Mongo'.
api/node_modules/meteor-rxjs/dist/ObservableCollection.d.ts(52,30): error TS2503: Cannot find namespace 'Mongo'.
api/node_modules/meteor-rxjs/dist/ObservableCursor.d.ts(19,30): error TS2503: Cannot find namespace 'Mongo'.
api/node_modules/meteor-rxjs/dist/ObservableCursor.d.ts(25,25): error TS2503: Cannot find namespace 'Mongo'.
api/node_modules/meteor-rxjs/dist/ObservableCursor.d.ts(30,22): error TS2503: Cannot find namespace 'Mongo'.
api/node_modules/meteor-rxjs/dist/ObservableCursor.d.ts(59,33): error TS2503: Cannot find namespace 'Meteor'.
api/node_modules/meteor-rxjs/dist/ObservableCursor.d.ts(66,40): error TS2503: Cannot find namespace 'Meteor'.
api/node_modules/meteor-rxjs/dist/ObservableCursor.d.ts(74,28): error TS2503: Cannot find namespace 'Mongo'.
api/server/models/job.ts(28,9): error TS2503: Cannot find namespace 'Mongo'.
node_modules/meteor-rxjs/dist/MeteorObservable.d.ts(123,34): error TS2503: Cannot find namespace 'Tracker'.
node_modules/meteor-rxjs/dist/ObservableCollection.d.ts(3,19): error TS2503: Cannot find namespace 'Mongo'.
node_modules/meteor-rxjs/dist/ObservableCollection.d.ts(4,19): error TS2503: Cannot find namespace 'Mongo'.
node_modules/meteor-rxjs/dist/ObservableCollection.d.ts(5,24): error TS2503: Cannot find namespace 'Mongo'.
node_modules/meteor-rxjs/dist/ObservableCollection.d.ts(6,25): error TS2503: Cannot find namespace 'Mongo'.
node_modules/meteor-rxjs/dist/ObservableCollection.d.ts(7,19): error TS2503: Cannot find namespace 'Mongo'.
node_modules/meteor-rxjs/dist/ObservableCollection.d.ts(28,42): error TS2503: Cannot find namespace 'Mongo'.
node_modules/meteor-rxjs/dist/ObservableCollection.d.ts(47,46): error TS2503: Cannot find namespace 'Mongo'.
node_modules/meteor-rxjs/dist/ObservableCollection.d.ts(52,30): error TS2503: Cannot find namespace 'Mongo'.
node_modules/meteor-rxjs/dist/ObservableCursor.d.ts(19,30): error TS2503: Cannot find namespace 'Mongo'.
node_modules/meteor-rxjs/dist/ObservableCursor.d.ts(25,25): error TS2503: Cannot find namespace 'Mongo'.
node_modules/meteor-rxjs/dist/ObservableCursor.d.ts(30,22): error TS2503: Cannot find namespace 'Mongo'.
node_modules/meteor-rxjs/dist/ObservableCursor.d.ts(59,33): error TS2503: Cannot find namespace 'Meteor'.
node_modules/meteor-rxjs/dist/ObservableCursor.d.ts(66,40): error TS2503: Cannot find namespace 'Meteor'.
node_modules/meteor-rxjs/dist/ObservableCursor.d.ts(74,28): error TS2503: Cannot find namespace 'Mongo'.

Any idea how to resolve that?

Cannot find module 'meteor/accounts-base'

I don't think this is necessarily related to this repository but maybe its related to the meteor-client-bundler. I'm getting an error about accounts-base:

Cannot find module 'meteor/accounts-base'

I've added it to my project with meteor add accounts-base. The functionality works (I can add users) but I still get the error. Do you know how to fix this?

Would it make sense to separate the client and server node_modules?

It's actually not an issue but more of an question. I'm wondering why server and client share the same packages.json and node_modules (in this repo and in the Meteor-IonicCLI tutorial etc). Besides a probably larger diskspace when having the same package twice, is there any reason to not seperating them? The server does not need e.g. all the Angular packages and there might also be some server only packages.

I tried separating both (which works fine for me) and I feel that meteor is now compiling faster, too, although, I have not really tested that.

Furthermore, I'm not sure which packages are needed only by client / server. Also, are there any Meteor packages that can be removed? For example, what about mobile-experience, standard-minifier-css and standard-minifier-js?

Tests: Module not found: Error: Can't resolve 'meteor/meteor'

In an attempt to write a karma test in the angularcli-meteor template, I added a test case, which depends on Meteor by importing 'meteor/meteor' in a class under test.
Then, if I issue
$> npm run test
I get
Module not found: Error: Can't resolve 'meteor/meteor'

To easily reproduce the issue, modify app.component.ts by calling anything on Meteor. E.g.

...
import { Meteor } from 'meteor/meteor'
...
ngOnInit() {
    console.log(Meteor.release)
    ...
  }

and run
$> npm run test

can't run the project

tried to clone the project, than npm install and then meteor in the api dir.

I'm getting :

WARNING: npm peer requirements (for angular-typescript-compiler) not installed:
@angular\[email protected] not installed.
@angular\[email protected] not installed.
@angular\[email protected] not installed.
@angular\[email protected] not installed.
[email protected] not installed.

and then errors like :

W20180219-17:12:09.856(2)? (STDERR) I:\MeteorProjects\angularcli-meteor-02\api.meteor\local\build\programs\server\boot.js:467
W20180219-17:12:09.861(2)? (STDERR) }).run();
W20180219-17:12:09.861(2)? (STDERR) ^
W20180219-17:12:09.862(2)? (STDERR)
W20180219-17:12:09.862(2)? (STDERR) Error: The babel-runtime npm package could not be found in your node_modules
W20180219-17:12:09.863(2)? (STDERR) directory. Please run the following command to install it:
W20180219-17:12:09.863(2)? (STDERR)
W20180219-17:12:09.864(2)? (STDERR) meteor npm install --save babel-runtime

Also :Unable to resolve some modules:

"meteor-rxjs" in /I/MeteorProjects/angularcli-meteor-02/api/server/collections/chats.js (os.windows.x86_64)
"moment" in /I/MeteorProjects/angularcli-meteor-02/api/server/main.js (os.windows.x86_64)

Any suggestions ?

Error: license-webpack-plugin

I run "npm run build-prod" and have error message:
"Error: license-webpack-plugin: Output template file does not exist: /home/niko/WebstormProjects/angularcli-meteor/node_modules/license-webpack-plugin/output.template.ejs"

Solution:
In 'webpack.config.js.prod' file.
Find: "/home/niko/WebstormProjects/angularcli-meteor/node_modules/license-webpack-plugin/output.template.ejs"
and Replace by: "./node_modules/license-webpack-plugin/output.template.ejs"

Uncaught ReferenceError: Mongo is not defined

I recently updated angular-cli and now i'm getting the following error:

Uncaught ReferenceError: Mongo is not defined

I've re-bundled meteor with meteor-client bundle -s api but that still doesn't help..

These are my versions:

Angular CLI: 1.6.8 (e)
Node: 9.5.0
OS: darwin x64
Angular: 5.2.4
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

@angular/cdk: 5.2.0
@angular/cli: 1.6.8
@angular/material: 5.2.0
@angular-devkit/build-optimizer: 0.0.42
@angular-devkit/core: 0.0.29
@angular-devkit/schematics: 0.0.52
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.8
@schematics/angular: 0.1.17
typescript-extends: 1.0.1
typescript: 2.5.3
webpack-dev-server: 2.11.1
webpack: 3.10.0

I've explicitly added Mongo to my meteor packages but that didn't help:

[email protected]             # Packages every Meteor app needs to have
[email protected]       # Packages for a great mobile UX
mongo                   # The database Meteor supports right now
[email protected] # Compile .html files into Meteor Blaze views
[email protected]            # Reactive variable for tracker
[email protected]                 # Meteor's client-side reactive programming library

[email protected]   # CSS minifier run for production mode
[email protected]    # JS minifier run for production mode
[email protected]                # ECMAScript 5 compatibility for older browsers
[email protected]              # Enable ECMAScript2015+ syntax in app code
[email protected]            # Server-side component of the `meteor shell` command

[email protected]                # Allow all DB writes from clients (for prototyping)

accounts-base
accounts-ui
accounts-password
anti:fake
reywood:publish-composite
barbatus:typescript

I've installed meteor-client and added import 'meteor-client'; to my api/main.ts as suggested here https://github.com/darkbasic/angularcli-meteor/issues/2 however then I get the following error:

ReferenceError: document is not defined

Any ideas on how to fix this? I've been stuck for two days!

Cannot find interface defined in api/server/models.ts

Starting out from the project at master, I tried to add some more features and found that if I start using interface types then webpack is complaining that it cannot find the interface.

How to reproduce:

  1. Start from the angularcli-meteor project at master
  2. In app.component.ts at line 17, add the correct typing (Chat) to the callback parameter. (The Chat interface is already imported.)
...
ngOnInit() {
    Chats.find({}).subscribe((chats: Chat[]) => {
      console.log(chats);
      this.chats = chats;
    });
  }
...
  1. Run npm run start

Result:

ERROR in .../angularcli-meteor-master/src/app/app.component.ts (17,38): Cannot find name 'Chat'.

Note

Thanks for your efforts to create this boilerplate. It's really useful.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.