Git Product home page Git Product logo

typescript's Introduction

TypeScript Compiler for Meteor

TypeScript files are compiled into ES5 and CommonJS modules by default.

Based on [email protected]

Default compiler options as JSON:

{
  "module": "commonjs",
  "target": "es5",
  "moduleResolution": "node",
  "experimentalDecorators": true,
  "emitDecoratorMetadata": true,
  "sourceMap": true
}

ES6

It's possible to use ES6 on the server with Meteor >= 1.4.

If you want to compile into ES6 on the server, put a tsconfig.json into the server folder:

{
  "compilerOptions": {
    "target": "ES6"
  }
}

Path mappings

TypeScript paths mapping is supported since 0.6.0, though, with some limitations. It works only for local files and for module: commonjs.

You can now use paths like imports/client/foo instead of Meteor rooted paths like /imports/client/foo if you add to the config.json as follows:

  "baseUrl": ".",
  "paths": {
    "*": ["*"]
  }

Typings

Install Meteor typings by npm i @types/meteor and you are ready to go.

Custom Typings

Typings files are processed in the same way as regular ts-files. If you place a declaration file into server folder it will be used only for the server code only.

Note that any change to a global declaration file will cause diagnostics re-evaluation. Hence, if you change some custom declaration file often, makes sence to reference it in some main ts-file and exclude in the config, i.e.:

 /// <reference path="typings/foo.d.ts" />
{
  "exclude": ["typings/foo.d.ts"]
}

Example

As an example, check out a simple TODO app built with Angular2 and TypeScript, https://github.com/Urigo/angular-meteor/tree/master/examples/todos-meteor-1.3

Package Structure

This package uses (directly or indirectly) three other packages, which are worth to mention:

typescript-compiler - exports a Meteor TypeScript compiler that implements Meteor compiler API. TypeScript compiler in its turn uses meteor-typescript package’s API to compile TypeScript source code incrementally on file changes.

meteor-typescript - an NPM package that exports an incremental TypeScript build class. That class is designed to be used in the series of subsequent compilations of TypeScript source code. In that case, TypeScript Service API, which is used internally, allows to reuse compilation statistics and data between subsequent builds, thus, improving speed of the compilation.

typescript-runtime - currently contains TypeScript helpers, which allow to configure behavior of some parts of the compiled TypeScript code for special use cases. One of the use cases is usage with the old browsers.

Credits

Thanks @urigo (Uri) for his support and resources to continue development of this project.

License

MIT

typescript's People

Contributors

barbatus avatar derek-fong avatar urigo avatar

Stargazers

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

Watchers

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

typescript's Issues

Runtime, cannot find module error

new to everything, meteor, .ts, npm in general. So, I am trying to make a single export file for my component which is split across multiple directives/folders. So at the root folder of the directive, I put a index.d.ts that exports all the components sub-directives. This compiles but when I load the site, I get cant find module error in the console.

'uncaught Error: Cannot find module '../directives/VideosDisplay'

add this to tsconfig in file glob - "client/*/.d.ts",

here is the index.d.ts in the root of the directives
export {VideosDisplay} from "./VideosDislay/VideosDisplay";
export {VideosDisplayNav} from "./VideosDislayNav/VideosDisplayNav";

inside VideosDisplayNav I have VideosDisplayNav.ts (same for VideosDisplay)

the goal is to able do this in another folder trying to use the components
import { VideosDisplay, VideosDisplayNav} from '../directives/VideosDisplay';

Cannot find module 'meteor/meteor'

I have added Typescript to my Meteor + React project, but am receiving the compile error Cannot find module 'meteor/meteor' in my main.tsx files in the /client and /server folders. I followed the install instructions as detailed in the readme.

import React from 'react';
import { Meteor } from 'meteor/meteor';
import { render } from 'react-dom';

import App from '../imports/App';

Meteor.startup(() => {
	render(<App />, document.getElementById('render-target'));
});

Crash when console.log on server after updating to latest

/Users/bsmith/.meteor/packages/barbatus_typescript/.0.2.11.1n4airx++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:116
      throw error;
            ^
TypeError: Cannot set property './publications.js' of undefined
    at ImportScanner._checkSourceAndTargetPaths (/tools/isobuild/import-scanner.js:256:7)
    at /tools/isobuild/import-scanner.js:159:12
    at Array.forEach (native)
    at ImportScanner.addInputFiles (/tools/isobuild/import-scanner.js:158:11)
    at /tools/isobuild/compiler-plugin.js:834:15
    at Array.forEach (native)
    at Function.computeJsOutputFilesMap (/tools/isobuild/compiler-plugin.js:805:19)
    at ServerTarget._emitResources (/tools/isobuild/bundler.js:913:8)
    at /tools/isobuild/bundler.js:684:12
    at /tools/utils/buildmessage.js:359:18
    at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
    at /tools/utils/buildmessage.js:352:34
    at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
    at /tools/utils/buildmessage.js:350:23
    at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
    at Object.enterJob (/tools/utils/buildmessage.js:324:26)
    at ServerTarget.make (/tools/isobuild/bundler.js:675:18)
    at /tools/isobuild/bundler.js:2502:14
    at /tools/isobuild/bundler.js:2570:20
    at /tools/utils/buildmessage.js:271:13
    at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
    at /tools/utils/buildmessage.js:264:29
    at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
    at /tools/utils/buildmessage.js:262:18
    at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
    at /tools/utils/buildmessage.js:253:23
    at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
    at Object.capture (/tools/utils/buildmessage.js:252:19)
    at Object.exports.bundle (/tools/isobuild/bundler.js:2455:31)
    at /tools/runners/run-app.js:591:36
    at Function.run (/tools/tool-env/profile.js:489:12)
    at bundleApp (/tools/runners/run-app.js:581:34)
    at AppRunner._runOnce (/tools/runners/run-app.js:634:35)
    at AppRunner._fiber (/tools/runners/run-app.js:887:28)
    at /tools/runners/run-app.js:411:12

mongo collection issue

Hi,

I moved over from pbastowski's typescript package to yours since this one is going to be officially supported by the Meteor team.

I am running in a ReferenceError: require is not defined issue with my Mongo collections.

I am setting up the collections like this: https://github.com/pbastowski/meteor1.3-collection-import

Is this package not yet supporting Meteor 1.3?

Syntax errors cause meteor process to die

While it seems that type errors and other semantic errors are handled quite robutst by the meteor watch-and-recompile process, I have problems with syntax errors. If there is a misplaced ; in place of , in an object literal for example, then the whole meteor procces exits unexpectedly leaving me with no clue about which file and line of my source code caused the error. I have to run tsc --out /dev/null file.js on the files I suspect one by one, until I find the error.
Here is an example output:

$ meteor
[[[[[ ~/projects/web-demo/web-app ]]]]]

=> Started proxy.
=> Started MongoDB.

/home/jlopuszanski/.meteor/packages/less/.2.6.0.1p4eefj++os+web.browser+web.cordova/plugin.compileLessBatch.os/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:116
      throw error;
            ^
TypeError: Cannot set property './initialize-database.js' of undefined
    at ImportScanner._checkSourceAndTargetPaths (/tools/isobuild/import-scanner.js:256:7)
    at /tools/isobuild/import-scanner.js:159:12
    at Array.forEach (native)
    at ImportScanner.addInputFiles (/tools/isobuild/import-scanner.js:158:11)
    at /tools/isobuild/compiler-plugin.js:834:15
    at Array.forEach (native)
    at Function.computeJsOutputFilesMap (/tools/isobuild/compiler-plugin.js:805:19)
    at ServerTarget._emitResources (/tools/isobuild/bundler.js:913:8)
    at /tools/isobuild/bundler.js:684:12
    at /tools/utils/buildmessage.js:359:18
    at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
    at /tools/utils/buildmessage.js:352:34
    at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
    at /tools/utils/buildmessage.js:350:23
    at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
    at Object.enterJob (/tools/utils/buildmessage.js:324:26)
    at ServerTarget.make (/tools/isobuild/bundler.js:675:18)
    at /tools/isobuild/bundler.js:2502:14
    at /tools/isobuild/bundler.js:2570:20
    at /tools/utils/buildmessage.js:271:13
    at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
    at /tools/utils/buildmessage.js:264:29
    at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
    at /tools/utils/buildmessage.js:262:18
    at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
    at /tools/utils/buildmessage.js:253:23
    at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
    at Object.capture (/tools/utils/buildmessage.js:252:19)
    at Object.exports.bundle (/tools/isobuild/bundler.js:2455:31)
    at /tools/runners/run-app.js:591:36
    at Function.run (/tools/tool-env/profile.js:489:12)
    at bundleApp (/tools/runners/run-app.js:581:34)
    at AppRunner._runOnce (/tools/runners/run-app.js:634:35)
    at AppRunner._fiber (/tools/runners/run-app.js:887:28)
    at /tools/runners/run-app.js:411:12

And here is a more helpful output of the tsc:

$ tsc --out /dev/null server/imports/startup/initialize-database.ts
server/imports/startup/initialize-database.ts(92,61): error TS1005: ')' expected.
server/imports/startup/initialize-database.ts(142,3): error TS1005: ',' expected.

The particular syntax error in 92 line is that I wrote:

  recordings.forEach((recordingDescription)=>{
    if(!Recordings.findOne({name:recordingDescription.name}){ //note the missing )
      Recordings.insert(recordingDescription);
    }
  });

Here is the list of packages I use:

$ meteor list
accounts-password             1.1.8* Password support for accounts
accounts-ui                   1.1.9  Simple templates to add login widgets to an app
barbatus:typescript           0.3.1* TypeScript for Meteor
dburles:collection-helpers    1.0.4  Transform your collections with helpers that you define
ecmascript                    0.4.3* Compiler plugin that supports ES2015+ in all .js files
es5-shim                      4.5.10* Shims and polyfills to improve ECMAScript 5 support
jquery                        1.11.8* Manipulate the DOM using CSS selectors
materialize:materialize       0.97.5  Materialize (official): A modern responsive front-end framework based on Material Design
meteor-base                   1.0.4  Packages that every Meteor app needs
mobile-experience             1.0.4  Packages for a great mobile user experience
mongo                         1.1.7* Adaptor for using MongoDB and Minimongo over DDP
peerlibrary:blaze-components  0.18.0  Reusable components for Blaze
peerlibrary:reactive-field    0.1.0  Reactive field for Meteor
reactive-var                  1.0.9* Reactive variable
reywood:publish-composite     1.4.2  Publish a set of related documents from multiple collections with a reactive join
standard-minifier-css         1.0.6* Standard css minifier used with Meteor apps by default.
standard-minifier-js          1.0.6* Standard javascript minifiers used with Meteor apps by default.
stylus                        2.511.5* Expressive, dynamic, robust CSS
tap:i18n                      1.8.0* A comprehensive internationalization solution for Meteor
tracker                       1.0.13* Dependency tracker to allow reactive callbacks

Problem with module resolution

I extended you demo app by adding another file to server (demo2.ts). demo2.ts exports function and demo.ts uses that function.
With this setup I get an error: Cannot find module './demo2'.
Same example written in javascript works.

I know this package is still in beta, so I am just asking if this is something that should be already working? If yes, am I doing something wrong?

Meteor outputs are pretty similar:

When using typescript generated js file (app.js in .meteor/local/build/programs/server/app) is:

var require = meteorInstall({"server":{"demo.ts":["./demo2",function(require,exports,module){

///////////////////////////////////////////////////////////////////////////////////////////
//                                                                                       //
// server/demo.js                                                                        //
//                                                                                       //
///////////////////////////////////////////////////////////////////////////////////////////
                                                                                         //
'use strict';                                                                            // 1
// HelloWorldServer with modules, to run: meteor run --release [email protected]
var demo2_1 = require('./demo2');                                                        // 4
demo2_1.heyHey();                                                                        // 6
//# sourceMappingURL=demo.js.map                                                         //
///////////////////////////////////////////////////////////////////////////////////////////

}],"demo2.ts":function(require,exports,module){

///////////////////////////////////////////////////////////////////////////////////////////
//                                                                                       //
// server/demo2.js                                                                       //
//                                                                                       //
///////////////////////////////////////////////////////////////////////////////////////////
                                                                                         //
'use strict';                                                                            // 1
function heyHey() {                                                                      // 3
    console.log('asdfasdf');                                                             //
}                                                                                        // 5
exports.heyHey = heyHey;                                                                 // 3
//# sourceMappingURL=demo2.js.map                                                        //
///////////////////////////////////////////////////////////////////////////////////////////

}}});
require("./server/demo.ts");
require("./server/demo2.ts");
//# sourceMappingURL=app.js.map

When using javascript:

var require = meteorInstall({"server":{"demo.js":["./demo2",function(require,exports,module){

///////////////////////////////////////////////////////////////////////////////////////////
//                                                                                       //
// server/demo.js                                                                        //
//                                                                                       //
///////////////////////////////////////////////////////////////////////////////////////////
                                                                                         //
'use strict';                                                                            // 1
// HelloWorldServer with modules, to run: meteor run --release [email protected]
                                                                                         //
var _demo = require('./demo2');                                                          //
                                                                                         //
(0, _demo.heyHey)();                                                                     // 6
///////////////////////////////////////////////////////////////////////////////////////////

}],"demo2.js":function(require,exports,module){

///////////////////////////////////////////////////////////////////////////////////////////
//                                                                                       //
// server/demo2.js                                                                       //
//                                                                                       //
///////////////////////////////////////////////////////////////////////////////////////////
                                                                                         //
'use strict';                                                                            // 1
                                                                                         //
exports.__esModule = true;                                                               //
exports.heyHey = heyHey;                                                                 //
function heyHey() {                                                                      // 3
    console.log('asdfasdf');                                                             // 4
}                                                                                        //
///////////////////////////////////////////////////////////////////////////////////////////

}}});
require("./server/demo.js");
require("./server/demo2.js");
//# sourceMappingURL=app.js.map

"No plugin known to handle file" only when calling meteor with test option!

Hi!
I'm a happy user of your typescript package, so thanks for that :)
However, there is a problem when I try to add tests to my TS bases package.

Package.describe({
    name: 'dasdeck:restcollection',
    version: '0.0.1',
    summary: 'a rest service resambling a collection',
    git: '',
    documentation: 'README.md'
});

Package.onUse(function (api) {
    api.versionsFrom('1.3');
    api.use('ecmascript');
    api.use('barbatus:typescript');

    api.use('jparker:crypto-md5');
    api.use('aldeed:simple-schema');
    api.use('underscore');
    api.use('jquery');


    api.addFiles('RESTObject.ts');
    api.addFiles('RESTCollection.ts');
    api.addFiles('RESTSearch.ts');
    api.addFiles('Converter.ts');
    api.addFiles('SchemaExtension.ts');
    api.addFiles('CollectionExtender.ts');

    api.addFiles('export.js');

    api.mainModule('export.js');

});

Package.onTest(function (api) {

    api.use('dasdeck:restcollection');
    api.use('practicalmeteor:mocha');
    //api.mainModule('test.js');

});

output:

/usr/local/bin/meteor --port 3020 test-packages --driver-package practicalmeteor:mocha
[[[[[ Tests ]]]]]

=> Started proxy.
=> Started MongoDB.
=> A patch (Meteor 1.4.1.1) for your current release is available!
   Update this project now with 'meteor update --patch'.
=> Errors prevented startup:

   While building package dasdeck:restcollection:
   error: No plugin known to handle file 'RESTObject.ts'. If you want this file
....

I could imagine that this is not really related to your packages, though it is obviously related.
Any ideas on where to start with this?

Thanks!

I got this issue, can someone help me, what might it be. thanks

at packages/barbatus:typescript-compiler/typescript-compiler.js:121:7
at
/Users/itayb/.meteor/packages/barbatus_typescript/.0.4.1.1lhdbmo++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:182:20
at replenish
(/Users/itayb/.meteor/packages/barbatus_typescript/.0.4.1.1lhdbmo++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:317:21)
at
/Users/itayb/.meteor/packages/barbatus_typescript/.0.4.1.1lhdbmo++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:324:29
at
/Users/itayb/.meteor/packages/barbatus_typescript/.0.4.1.1lhdbmo++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:44:16
at packages/barbatus:typescript-compiler/typescript-compiler.js:121:7
at
/Users/itayb/.meteor/packages/barbatus_typescript/.0.4.1.1lhdbmo++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:182:20
at replenish
(/Users/itayb/.meteor/packages/barbatus_typescript/.0.4.1.1lhdbmo++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:317:21)
at
/Users/itayb/.meteor/packages/barbatus_typescript/.0.4.1.1lhdbmo++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:328:15
at Object.async.forEachLimit.async.eachLimit
(/Users/itayb/.meteor/packages/barbatus_typescript/.0.4.1.1lhdbmo++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:221:35)
at TypeScriptCompiler.processFilesForTarget
(packages/barbatus:typescript-compiler/typescript-compiler.js:89:11)

Exporting a function from a .tsx file: Cannot invoke an expression whose type lacks a call signature.

I have the two files:

/imports/startup/client/index.ts:

import initRouter from './initRouter';

initRouter();

/imports/startup/client/initRouter.tsx:

import * as React from 'react';
import { render } from 'react-dom';
import { Router, Route, IndexRoute, browserHistory } from 'react-router';

export default (): void => {
  render((
    <Router history={ browserHistory }>
      ...
    </Router>
  ), document.getElementById('root'));
};

When I run this I get the error:

imports/startup/client/index.ts (3, 1): Cannot invoke an expression whose type lacks a call signature.

I can get rid of the error by changing the import statement in index.ts to one of either:

import initRouter from './initRouter.tsx';

or

import initRouter from '/imports/startup/client/initRouter';

Am I incorrect in assuming that the compiler should be able to use the relative import path without the explicit file extension?

Why do types need to be manually specified?

The readme states:

To install Meteor declaration files, install meteor-typings NPM and change tsconfig.json as follows:
{ "compilerOptions": { "types": ["meteor-typings"] } }

I've noticed that you need to manually add each type that you install (via npm @types) to this list. The TypeScript documentation says that the compiler should check for these types on its own.

Can anyone shed some more light on this?

Strange issue, related to module resolution most likely

I am getting the below compilation issues when trying to get up and running with barbatus:[email protected]...

@barbatus since you are the TS legend I was hoping that you might be able to provide some guidance.

Essentially, any npm packages that I have installed I can import without issue, but when it comes to the meteor core or other meteor install packages (like meteor-accounts-ui-bootstrap I get these issues. Might it have to do with my tsconfig.json?

Thanks in advance.
Jacob

client/Utils/AccountsUIWrapper.tsx (6, 26): Cannot find module 'meteor/template'.
client/Utils/AccountsUIWrapper.tsx (7, 23): Cannot find module 'meteor/blaze'.

Docs on atmosphere not yet updated?

Hello,
I noticed that your atmosphere page does not have the latest readme. For example, in the code segment just after "To install Meteor declaration files", the atmosphere page has the incorrect compiler option "@types" instead of the correct "types".

I figured it was worth mentioning to help others, since I wasted some time figuring out the above error (until I came across the github page).

Thanks!

After upgrade form 0.6.3 to 0.6.5_1 compilation fails

/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/typescript/lib/typescript.js:29142:20:
Cannot read property 'forEach' of 
at symbolsToArray
(/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/typescript/lib/typescript.js:29142:20)
at Object.getExportsOfModuleAsArray
(/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/typescript/lib/typescript.js:25811:20)
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/meteor-typescript/ts-utils.js:68:29
at Function._.each._.forEach
(/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/underscore/underscore.js:153:9)
at getDeps
(/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/meteor-typescript/ts-utils.js:61:7)
at Object.getDepsAndRefs
(/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/meteor-typescript/ts-utils.js:104:17)
at CompileService.CP.compile
(/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/meteor-typescript/compile-service.js:45:18)
at compile
(/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/meteor-typescript/index.js:156:35)
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/meteor-typescript/index.js:171:16
at Cache.CCp.get
(/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/meteor-typescript/cache.js:167:19)
at TSBuild.emit
(/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/meteor-typescript/index.js:168:31)
at packages/barbatus:typescript-compiler/typescript-compiler.js:135:30
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:182:20
at replenish
(/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:317:21)
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:324:29
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:44:16
at packages/barbatus:typescript-compiler/typescript-compiler.js:142:7
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:182:20
at replenish
(/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:317:21)
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:324:29
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:44:16
at packages/barbatus:typescript-compiler/typescript-compiler.js:142:7
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:182:20
at replenish
(/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:317:21)
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:324:29
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:44:16
at packages/barbatus:typescript-compiler/typescript-compiler.js:142:7
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:182:20
at replenish
(/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:317:21)
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:324:29
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:44:16
at packages/barbatus:typescript-compiler/typescript-compiler.js:142:7
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:182:20
at replenish
(/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:317:21)
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:324:29
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:44:16
at packages/barbatus:typescript-compiler/typescript-compiler.js:142:7
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:182:20
at replenish
(/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:317:21)
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:324:29
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:44:16
at packages/barbatus:typescript-compiler/typescript-compiler.js:142:7
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:182:20
at replenish
(/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:317:21)
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:324:29
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:44:16
at packages/barbatus:typescript-compiler/typescript-compiler.js:142:7
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:182:20
at replenish
(/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:317:21)
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:324:29
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:44:16
at packages/barbatus:typescript-compiler/typescript-compiler.js:142:7
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:182:20
at replenish
(/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:317:21)
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:324:29
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:44:16
at packages/barbatus:typescript-compiler/typescript-compiler.js:142:7
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:182:20
at replenish
(/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:317:21)
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:324:29
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:44:16
at packages/barbatus:typescript-compiler/typescript-compiler.js:142:7
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:182:20
at replenish
(/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:317:21)
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:324:29
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:44:16
at packages/barbatus:typescript-compiler/typescript-compiler.js:142:7
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:182:20
at replenish
(/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:317:21)
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:324:29
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:44:16
at packages/barbatus:typescript-compiler/typescript-compiler.js:142:7
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:182:20
at replenish
(/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:317:21)
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:324:29
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:44:16
at packages/barbatus:typescript-compiler/typescript-compiler.js:142:7
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:182:20
at replenish
(/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:317:21)
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:324:29
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:44:16
at packages/barbatus:typescript-compiler/typescript-compiler.js:142:7
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:182:20
at replenish
(/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:317:21)
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:324:29
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:44:16
at packages/barbatus:typescript-compiler/typescript-compiler.js:142:7
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:182:20
at replenish
(/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:317:21)
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:324:29
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:44:16
at packages/barbatus:typescript-compiler/typescript-compiler.js:142:7
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:182:20
at replenish
(/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:317:21)
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:324:29
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:44:16
at packages/barbatus:typescript-compiler/typescript-compiler.js:142:7
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:182:20
at replenish
(/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:317:21)
at
/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:328:15
at Object.async.forEachLimit.async.eachLimit
(/home/rof/meteor/packages/barbatus_typescript/.0.6.5_1.1tjvrhq++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:221:35)
at TypeScriptCompiler.processFilesForTarget
(packages/barbatus:typescript-compiler/typescript-compiler.js:127:11)

React Spread operator breaks in latest version

Just bumped my barbatus:typescript to 0.2.5 (meteor add barbatus:[email protected]), and got a broken build due to the use of spread operator. I know that there was a patch to React on the arrival of v15.0.0 -> 15.0.1 that had to to with this operator, but not sure the relation to this problem.

Any insight on the spread issue?

The error I am seeing in Chrome is:

index.tsx:28 Uncaught ReferenceError: __assign is not defined

Meteor.startup(function() {
    let routerConfig = {
        history: browserHistory,
    };
    // Use Meteor.startup to render the component after the page is ready
    let initialRouterState = (
        <Router {...routerConfig} >
            <Route path="/" component={AuthenticationContainer}>
                <Route path="login" component={ LoginPage }> </Route>
                <Route component={App} > blah blah blah </Route>
            </Route>
        </Router>
    );
    ReactDOM.render(initialRouterState, document.getElementById("render-target"));
});

lib.d.ts declarations are not processed

I recently upgraded my environment ([email protected], [email protected], and reinstalled barbatus:typescript) and now during my compilation step I get a lot of errors for undefined symbols like "alert" "setTimeout" "clearTimeout" etc.

My IDE correctly points me to the lib.d.ts file containing those definitions, so it doesn't give me any error sign, but the command line compilation from meteor gives me many of these errors.

My previous setup with a older version of the packages used to work fine.

Non-relative module resolution by path mapping (tsconfig.json "baseUrl" + "paths") support?

I see from the README.md that this TypeScript compiler has support for module resolution via path mapping with "limitations".

I have an Angular-Meteor project using:

When I attempt to use the baseUrl and paths properties in tsconfig.json to resolve non-relative modules in a node_modules directory outside of the Meteor project directory, the compiler is unable to find the matching paths, which it prefixes with a / in the output. Is this one of the current limitations?

Module resolution failure

Steps to reproduce:

  1. Clone this repository.
  2. Run npm install.
  3. Run meteor.

Result: An error that the uuid module can't be found, plus a long stacktrace which appears to include the uuid() function source.
Expected result: A message Starting up followed by a UUID.

Note that if you move main.ts to main.js, everything works. There is a TS declaration for the uuid module, but my expectation is that this would just work and warn me about it rather than fail out-right. I don't know if the error about missing the module refers to the type definitions for the module or the module itself--based on the tutorial you linked I'm guessing the former--but it seems like it should work nonetheless.

Thanks.

Issues detecting new files

I create a new ts / tsx File the compiler does not compile it correctly into the served app.js

Let's say I create and reference a Layout.tsx file inside the imports/ui directory. The section in the served app.js will be:

}]}},"Layout.tsx":["./Layout.js",function(require,exports,module){

//////////////////////////////////////////////////////////////////////////////////////////////////////////////
//                                                                                                          //
// imports/ui/Layout.tsx                                                                                    //
//                                                                                                          //
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
module.exports = require("./Layout.js");                                                                   // 1

And in the browser this will fail with the message:

modules-runtime.js?hash=5b5615c…:119Uncaught Error: Cannot find module './Layout.js'

After restarting the server though the served app.js will contain the properly compiled section:

"Layout.js":["react","material-ui/styles/MuiThemeProvider","./components/background/BackgroundComponent","../lib/i18n/i18n","./theme/Theme","material-ui/styles","./lib/tapplugin","meteor/react-meteor-data","meteor/meteor","./components/header/Header",function(require,exports){

//////////////////////////////////////////////////////////////////////////////////////////////////////////////
//                                                                                                          //
// imports/ui/Layout.js                                                                                     //
//                                                                                                          //
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
                                                                                                            //
var React = require("react");                                                                               // 1
var react_1 = require("react");                                                                             // 2
var MuiThemeProvider_1 = require('material-ui/styles/MuiThemeProvider');                                    // 4
var BackgroundComponent_1 = require("./components/background/BackgroundComponent");                         // 5
var i18n_1 = require("../lib/i18n/i18n");               
...

Meteor version 1.4.2.1

.meteor/packages


[email protected]             
[email protected]       

[email protected]_1
[email protected]            

[email protected]                 

[email protected]    
[email protected]                
[email protected]              
[email protected]            

[email protected]                

barbatus:typescript
fourseven:scss
seba:minifiers-autoprefixer
react-meteor-data

accounts-base
accounts-password

package.json

{
"dependencies": {
    "babel-runtime": "^6.18.0",
    "bcrypt": "^0.8.7",
    "markdown-it": "^8.0.0",
    "material-ui": "^0.16.2",
    "meteor-node-stubs": "~0.2.0",
    "moment": "^2.15.2",
    "phantom": "^3.0.1",
    "react": "^15.3.2",
    "react-addons-pure-render-mixin": "^15.3.2",
    "react-dom": "^15.3.2",
    "react-router": "^3.0.0",
    "react-tap-event-plugin": "^1.0.0"
  },
  "devDependencies": {
    "tslint-react": "^1.0.0"
  }
}

tsconfig.json

{
  "compilerOptions": {
    "module": "commonjs",
    "target": "es5",
    "moduleResolution": "node",
    "experimentalDecorators": true,
    "emitDecoratorMetadata": true,
    "sourceMap": true,
    "jsx": "react",
    "charset": "utf-8"
  }
}

I am guessing this is some kind of caching issue, but currently I haven't found any workarounds.

Does anyone have this issue?

Any alternatives?

Memory issue

I'm having an issue where running a pretty complex Meteor application written in TypeScript on our CI server (a Digital Ocean droplet running 4GB RAM) results in the following error:

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory

<--- Last few GCs --->

  817255 ms: Scavenge 1396.9 (1456.6) -> 1396.9 (1456.6) MB, 13.4 / 0 ms (+ 1.8 ms in 1 steps since last GC) [allocation failure] [incremental marking delaying mark-sweep].
  819607 ms: Mark-sweep 1396.9 (1456.6) -> 1395.0 (1454.6) MB, 2352.4 / 0 ms (+ 4.5 ms in 2 steps since start of marking, biggest step 2.8 ms) [last resort gc].
  821703 ms: Mark-sweep 1395.0 (1454.6) -> 1394.0 (1456.6) MB, 2095.8 / 0 ms [last resort gc].


<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0x3bf3c4fb4629 <JS Object>
    1: getJsDocCommentsFromText [/root/.meteor/packages/barbatus_typescript/.0.6.0.1czq2br++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/typescript/lib/typescript.js:~6706] [pc=0x19be6f6a0f2a] (this=0x2dc787cd7101 <an Object with map 0x3f3fb86be029>,node=0x327d781500b9 <a NodeObject with map 0x99545818e19>,text=0x394f72894701 ...

Aborted (core dumped)

Any ideas as to what might be causing this?

I'm not really sure how to approach this from a Meteor perspective so am sure I'm not providing enough information here. If you need anything further let me know, I will very much appreciate your help either way!

Error compiling on 0.2.2

I just upgraded barbatus:typescript to 0.2.2 and barbatus:typescript-compiler to 0.5.1 and now I can't run Meteor. I get a whole slew of errors such as:
Cannot find name 'Date'
Property 'length' does not exist on type 'string[]'.
Cannot find name 'Math'

Cannot import meteor/mongo

I'm currently working on a small test application using angular 2 and meteor 1.3. In the spirit of doing things the recommended way I have only two files in the global directories that just does a few imports.

In one of my services (/imports/client/services/service.ts) I wish to access the meteor apis like this:

import { Meteor } from 'meteor/meteor'
import { Mongo } from 'meteor/mongo';
import {Units} from '../../model/units.js';

I get the following errors:

imports/client/services/recipe-service.ts (1, 24): Cannot find module 'meteor/meteor'.
imports/client/services/recipe-service.ts (2, 21): Cannot find module 'meteor/mongo'.
imports/client/services/recipe-service.ts (3, 21): Cannot find module '../../model/units.js'.

It looks like the compiler doesn't support the built-in meteor/ prefix for resolving modules as well as not importing JavaScript files.

Not importing JavaScript would be ok as long as it's possible to import meteor packages.

console.log Cannot find name 'console'

I am new to typescript in Meteor and following this guide I have an error console.log Cannot find name 'console'. (console.log("something"))

imports/lib/classes/entity/Entity.ts (70, 5): Cannot find name 'console'.
imports/lib/classes/entity/Entity.ts (105, 5): Cannot find name 'console'.
imports/lib/classes/entity/Entity.ts (110, 5): Cannot find name 'console'.
imports/lib/logicLayer/actions/actions.ts (15, 33): Property 'assign' does not exist on type 'ObjectConstructor'.
imports/lib/logicLayer/actions/actions.ts (21, 33): Property 'assign' does not exist on type 'ObjectConstructor'.
imports/lib/logicLayer/actions/actions.ts (27, 33): Property 'assign' does not exist on type 'ObjectConstructor'.

...
  • After some research console.log seems to be defined in the default lib.d.ts, so how to be sure if it is imported at compilation?
  • Object.assign is defined in the es6-shim.d.ts. I tried to typings install --ambient es6-shim and the errors on Object.assign are now gone. Is it the good definition?

I have installed the @jacobdr (Thx for your help in #6!) meteor definition and my tsconfig.json is:

{
  "include": [" typings/main.d.ts "],
}

Note that tsconfig.json was not present after package installation and I created it manually. I don't know if it is normal as the readme does not state to create one. Does this file guides the IDE compiler (I use webstorm) or the meteor compiler?

My main.d.ts is:

/// <reference path="browser/ambient/es6-shim/index.d.ts" />
/// <reference path="browser/ambient/meteor/index.d.ts" />

Would not be useful to add some commons definitions as an advisable step in the installation readme (since Meteor uses Ecmascript2015 by default)?

Thx for your help.

Intermittent compilation errors

I've been developing an application recently, and have run into a strange error that has me stopped cold. Here are the steps to make the errors appear (update: occurs on Linux as well as Windows 10):

Clone the git repository for this project and cd.
Run meteor npm install.
Run meteor and the application works fine.
Stop meteor (two control-C's) and then start again (meteor). The errors below appear and the app doesn't run.
If you run meteor reset followed by meteor, the application runs again once.
The problem occurs with versions 1.4.2.7 and 1.4.3.2 of meteor, as well as 0.6.3 and 0.6.5_1 of barbatus/typescript.

I would greatly appreciate suggestions on how to track this down (or a fix). Thanks.

From Linux (abbreviated):

=> Started proxy.
=> Started MongoDB.
=> Errors prevented startup:

   While processing files with barbatus:typescript (for target web.browser):

   /home/bobd/.meteor/packages/barbatus_typescript/.0.6.5_1.11kuj6j++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/meteor-typescript/utils.js:91:12:
   false == true
   at exports.assertProps
   (/home/bobd/.meteor/packages/barbatus_typescript/.0.6.5_1.11kuj6j++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/meteor-typescript/utils.js:91:12)
   at createCSResult
[...]

getting a lot of module not found message in my console

Hi,

We use typescript with Angular and Meteor and I do my imports at the top and get a lot of compiler message about the modules:

server/methods/invoice.ts (1, 38): Cannot find module '/imports/collections/invoices'.
server/methods/invoice.ts (2, 38): Cannot find module '/imports/collections/activatedInvoices'.
server/methods/invoice.ts (3, 38): Cannot find module '/imports/server/lib/httpHelper'.
server/methods/invoice.ts (4, 38): Cannot find module '/server/lib/invoice.class'.
server/methods/invoice.ts (5, 38): Cannot find module 'url'.
server/methods/invoice.ts (6, 38): Cannot find module '/server/lib/salesforce.class'.
server/methods/invoice.ts (7, 38): Cannot find module '/server/lib/xero.class'.
server/methods/invoice.ts (14, 8): Property 'scopedMethods' does not exist on type 'typeof Meteor'.
server/methods/lead.ts (1, 36): Cannot find module '/imports/lib/enums/statusCode.enum'.
server/methods/lead.ts (2, 36): Cannot find module 'url'.
server/methods/lead.ts (3, 36): Cannot find module '/imports/server/lib/httpHelper'.
server/methods/lead.ts (4, 36): Cannot find module 'auth0'.
server/methods/lead.ts (5, 36): Cannot find module 'jsonwebtoken'.
...etc..

Any idea how to resolve that? Apparently the modules are found otherwise the app would crash, right?

Regularly getting "unexpected token <"

Basically, about half the time I'm saving a file I'll get the error message:

Uncaught SyntaxError: Unexpected token <

If I then click on the link to the offending file I'm seeing this:

image

It's perfectly fine code - it's just not transcoded. Which is exemplified by the fact that I can "fix" this issue by adding (or removing) a random number of tabs, whitespace or carriage returns. The code will then work for a while until I'm forced to remove the whitespace again if I added it before (or vice-versa).

I'm not sure where the root cause lies but it began to pop up after I updated to version 0.6.0

Cannot read property 'kind' of undefined

I am in the process of converting a meteor app to typescript. Meteor keeps spitting up a huge amount of errors without really giving me any clue on what it is the root cause of the problem.

While processing files with barbatus:typescript (for target os.linux.x86_64):
/home/stefano/.meteor/packages/barbatus_typescript/.0.4.1.10i2ys7++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/typescript/lib/typescript.js:18813:42: Cannot read
property 'kind' of undefined
at getTypeForVariableLikeDeclaration
(/home/stefano/.meteor/packages/barbatus_typescript/.0.4.1.10i2ys7++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/typescript/lib/typescript.js:18813:42)
at getWidenedTypeForVariableLikeDeclaration
(/home/stefano/.meteor/packages/barbatus_typescript/.0.4.1.10i2ys7++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/typescript/lib/typescript.js:18950:24)
at getTypeOfVariableOrParameterOrProperty
(/home/stefano/.meteor/packages/barbatus_typescript/.0.4.1.10i2ys7++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/typescript/lib/typescript.js:19012:28)
at getTypeOfSymbol
(/home/stefano/.meteor/packages/barbatus_typescript/.0.4.1.10i2ys7++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/typescript/lib/typescript.js:19149:24)
at checkClassLikeDeclaration
(/home/stefano/.meteor/packages/barbatus_typescript/.0.4.1.10i2ys7++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/typescript/lib/typescript.js:30464:30)
at checkClassDeclaration
(/home/stefano/.meteor/packages/barbatus_typescript/.0.4.1.10i2ys7++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/typescript/lib/typescript.js:30446:13)
at checkSourceElement
(/home/stefano/.meteor/packages/barbatus_typescript/.0.4.1.10i2ys7++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/typescript/lib/typescript.js:31499:28)
at Object.forEach
(/home/stefano/.meteor/packages/barbatus_typescript/.0.4.1.10i2ys7++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/typescript/lib/typescript.js:973:30)
at checkSourceFileWorker
(/home/stefano/.meteor/packages/barbatus_typescript/.0.4.1.10i2ys7++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/typescript/lib/typescript.js:31580:20)
at checkSourceFile
(/home/stefano/.meteor/packages/barbatus_typescript/.0.4.1.10i2ys7++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/typescript/lib/typescript.js:31562:13)
at getDiagnosticsWorker
(/home/stefano/.meteor/packages/barbatus_typescript/.0.4.1.10i2ys7++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/typescript/lib/typescript.js:31615:17)
at getDiagnostics
(/home/stefano/.meteor/packages/barbatus_typescript/.0.4.1.10i2ys7++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/typescript/lib/typescript.js:31606:24)
at Object.getEmitResolver
(/home/stefano/.meteor/packages/barbatus_typescript/.0.4.1.10i2ys7++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/typescript/lib/typescript.js:16422:13)
at emitWorker
(/home/stefano/.meteor/packages/barbatus_typescript/.0.4.1.10i2ys7++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/typescript/lib/typescript.js:44193:69)
at /home/stefano/.meteor/packages/barbatus_typescript/.0.4.1.10i2ys7++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/typescript/lib/typescript.js:44158:66
at runWithCancellationToken
(/home/stefano/.meteor/packages/barbatus_typescript/.0.4.1.10i2ys7++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/typescript/lib/typescript.js:44239:24)
at Object.emit
(/home/stefano/.meteor/packages/barbatus_typescript/.0.4.1.10i2ys7++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/typescript/lib/typescript.js:44158:20)
at Object.getEmitOutput
(/home/stefano/.meteor/packages/barbatus_typescript/.0.4.1.10i2ys7++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/typescript/lib/typescript.js:57304:38)
at CompileService.CP.compile
(/home/stefano/.meteor/packages/barbatus_typescript/.0.4.1.10i2ys7++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/meteor-typescript/compile-service.js:28:29)
at compile (/home/stefano/.meteor/packages/barbatus_typescript/.0.4.1.10i2ys7++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/meteor-typescript/index.js:197:33)
at /home/stefano/.meteor/packages/barbatus_typescript/.0.4.1.10i2ys7++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/meteor-typescript/index.js:213:14
at Cache.CCp.get
(/home/stefano/.meteor/packages/barbatus_typescript/.0.4.1.10i2ys7++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/meteor-typescript/cache.js:169:19)
at TSBuild.BP.emit
(/home/stefano/.meteor/packages/barbatus_typescript/.0.4.1.10i2ys7++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/meteor-typescript/index.js:210:29)
at packages/barbatus:typescript-compiler/typescript-compiler.js:107:28
at /home/stefano/.meteor/packages/barbatus_typescript/.0.4.1.10i2ys7++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:182:20
at replenish (/home/stefano/.meteor/packages/barbatus_typescript/.0.4.1.10i2ys7++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:317:21)
at /home/stefano/.meteor/packages/barbatus_typescript/.0.4.1.10i2ys7++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:324:29
at /home/stefano/.meteor/packages/barbatus_typescript/.0.4.1.10i2ys7++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:44:16
at packages/barbatus:typescript-compiler/typescript-compiler.js:121:7
at /home/stefano/.meteor/packages/barbatus_typescript/.0.4.1.10i2ys7++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:182:20
at replenish (/home/stefano/.meteor/packages/barbatus_typescript/.0.4.1.10i2ys7++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:317:21)
at /home/stefano/.meteor/packages/barbatus_typescript/.0.4.1.10i2ys7++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:324:29
at /home/stefano/.meteor/packages/barbatus_typescript/.0.4.1.10i2ys7++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/barbatus_typescript-compiler/node_modules/async/lib/async.js:44:16

Is there an up-to-date example somewhere?

I'm a bit confused by all the package sprawl. :) Is there an up-to-date Meteor 1.3 sample available anywhere?

I'm learning TypeScript by porting parts of my Meteor app. Unfortunately I'm getting lots of Cannot find module ... errors. For instance:

import {Meteor} from "meteor/meteor"

gives me this error.

I'm unsure if I need to provide an updated tsconfig.json or something for Meteor 1.3. I'm new enough to this that I'm unsure if I want to tell TS to use ES2015 modules or if Meteor's own build process handles that, if I want to emit ES2015 and let Meteor's build process take over, etc. It's also possible I'm doing something very wrong in my imports/exports, though they're suddenly all failing when they used to work fine. Having a sample project would be helpful.

Thanks.

Add license

I'd like to use this library for my company but you don't have a license on it. Can you add a license (possibly the MIT license) so that others are allowed to use it? Thanks!

Unable to import modules from `/imports`

Since the support for the new import/export syntax has become a good practice to move all the modules into an /imports folder, so that they won't get bundled by Meteor if nobody explicitly imports them.

My project structure looks like this:

app
├── imports
│   ├── enumerators
│   │   └── enumerator.ts 
│   └── modules
│       └── module.ts 
└── tsconfig.json

My tsconfig.json looks like this:

{
  "compilerOptions": {
    "baseUrl": ".",
    "module": "commonjs",
    "moduleResolution": "node"
  }
}

From inside module.ts I can do:

  • import E from '/imports/enumerators/enumerator', which is understood by Meteor but not by TypeScript
  • import E from 'imports/enumerators/enumerator (notice the lack of the initial slash), which is understood by TypeScript but not by Meteor

I don't want to use import E from '../enumerators/enumerator' which is understood by both for maintenance purposes, if I move the file in question to another path updating the imports is trivial if they uses an absolute path.

How am I supposed to make it work?

TypeScript compiler hangs during "Determining active plugins..." on startup

Hi @barbatus @Urigo ,

Notice that since Meteor 1.4.1.1 (also occur using 1.4.1.2), the TypeScript compiler (barbatus:typescript) hangs when starting an application that uses it, during the Determining active plugins... part, for about 30-40 seconds (looks like that size of the project or number of files does not affect it, only the fact that the package exists).

When using Meteor 1.4.2-rc.0 / 1.4.2-rc.1, it hangs for more time, about 1 minute (tested with Socially 2), and I also can't cancel the Meteor build during that time, only to kill the process.

The Meteor log when running with METEOR_DEBUG_BUILD=1; METEOR_PROFILE=100, this is my log:

=> Started proxy.                             
 START 0 starting your app                   -
 START CAPTURE 0 undefined took NaN
| (#1) Profiling: ProjectContext prepareProjectForBuild
   START 1 preparing project
     START CAPTURE 2 undefined took NaN
       START 3 scanning local packages
         START 4 looking for packages
         DONE 4 looking for packages took 4  -
         START 4 initializing packages       -
         DONE 4 initializing packages took 1 -
       DONE 3 scanning local packages took 16-
     END CAPTURE 2 undefined took 18
     START CAPTURE 2 undefined took NaN
       START 3 selecting package versions
         START CAPTURE 4 loading isopacket `constraint-solver` took NaN
         END CAPTURE 4 loading isopacket `constraint-solver` took 73
       DONE 3 selecting package versions took 155
     END CAPTURE 2 undefined took 156
     START CAPTURE 2 undefined took NaN
       START 3 downloading missing packages
         START 4 checking for [email protected]_1
         DONE 4 checking for [email protected]_1 took 6
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 9
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 1
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 2
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 1
         START 4 checking for [email protected]_1
         DONE 4 checking for [email protected]_1 took 6
         START 4 checking for [email protected]_1
         DONE 4 checking for [email protected]_1 took 4
         START 4 checking for barbatus:[email protected]
         DONE 4 checking for barbatus:[email protected] took 2
         START 4 checking for barbatus:[email protected]
         DONE 4 checking for barbatus:[email protected] took 38
         START 4 checking for barbatus:[email protected]
         DONE 4 checking for barbatus:[email protected] took 2
         START 4 checking for barbatus:[email protected]_1
         DONE 4 checking for barbatus:[email protected]_1 took 1
         START 4 checking for barbatus:[email protected]
         DONE 4 checking for barbatus:[email protected] took 1
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 2
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 1
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 1
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 1
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 2
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 2
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 3
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 2
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 3
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 1
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 3
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 3
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 2
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 1
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 1
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 1
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 1
         START 4 checking for dispatch:[email protected]
         DONE 4 checking for dispatch:[email protected] took 4
         START 4 checking for dispatch:[email protected]
         DONE 4 checking for dispatch:[email protected] took 12
         START 4 checking for [email protected]_1
         DONE 4 checking for [email protected]_1 took 1
         START 4 checking for [email protected]_1
         DONE 4 checking for [email protected]_1 took 1
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 1
         START 4 checking for [email protected]_1
         DONE 4 checking for [email protected]_1 took 6
         START 4 checking for [email protected]_1
         DONE 4 checking for [email protected]_1 took 1
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 2
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 2
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 2
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 2
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 4
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 2
         START 4 checking for hwillson:[email protected]
         DONE 4 checking for hwillson:[email protected] took 2
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 2
         START 4 checking for jalik:[email protected]_1
         DONE 4 checking for jalik:[email protected]_1 took 1
         START 4 checking for jalik:[email protected]
         DONE 4 checking for jalik:[email protected] took 3
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 5
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 1
         START 4 checking for [email protected]|
         DONE 4 checking for [email protected] took 1
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 3
         START 4 checking for [email protected]_1
         DONE 4 checking for [email protected]_1 took 2
         START 4 checking for matb33:[email protected]
         DONE 4 checking for matb33:[email protected] took 3
         START 4 checking for [email protected]_1|
         DONE 4 checking for [email protected]_1 took 3
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 2
         START 4 checking for [email protected]_1
         DONE 4 checking for [email protected]_1 took 1
         START 4 checking for [email protected]_1
         DONE 4 checking for [email protected]_1 took 2
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 4
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 4
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 3
         START 4 checking for [email protected]_1|
         DONE 4 checking for [email protected]_1 took 2
         START 4 checking for [email protected]_1
         DONE 4 checking for [email protected]_1 took 5
         START 4 checking for [email protected]_5 |
         DONE 4 checking for [email protected]_5 took 4
         START 4 checking for [email protected] |
         DONE 4 checking for [email protected] took 1
         START 4 checking for mys:[email protected]
         DONE 4 checking for mys:[email protected] took 1
         START 4 checking for mys:[email protected]|
         DONE 4 checking for mys:[email protected] took 1
         START 4 checking for [email protected]_1
         DONE 4 checking for [email protected]_1 took 1
         START 4 checking for [email protected]_1
         DONE 4 checking for [email protected]_1 took 2
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 1
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 2
         START 4 checking for practicalmeteor:[email protected]_1
         DONE 4 checking for practicalmeteor:[email protected]_1 took 4
         START 4 checking for practicalmeteor:[email protected]_2
         DONE 4 checking for practicalmeteor:[email protected]_2 took 2
         START 4 checking for practicalmeteor:[email protected]_6
         DONE 4 checking for practicalmeteor:[email protected]_6 took 1
         START 4 checking for practicalmeteor:[email protected]
         DONE 4 checking for practicalmeteor:[email protected] took 2
         START 4 checking for practicalmeteor:[email protected]_2
         DONE 4 checking for practicalmeteor:[email protected]_2 took 3
         START 4 checking for [email protected]  |
         DONE 4 checking for [email protected] took 2
         START 4 checking for [email protected]  |
         DONE 4 checking for [email protected] took 1
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 2
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 2
         START 4 checking for [email protected]  |
         DONE 4 checking for [email protected] took 2
         START 4 checking for [email protected]    |
         DONE 4 checking for [email protected] took 1
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 0
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 1
         START 4 checking for [email protected]      |
         DONE 4 checking for [email protected] took 1|
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 0
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 3
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 4
         START 4 checking for [email protected]      |
         DONE 4 checking for [email protected] took 6|
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 2
         START 4 checking for [email protected]_1
         DONE 4 checking for [email protected]_1 took 1
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 1
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 0
         START 4 checking for tmeasday:[email protected]
         DONE 4 checking for tmeasday:[email protected] took 2
         START 4 checking for tmeasday:[email protected]
         DONE 4 checking for tmeasday:[email protected] took 4
         START 4 checking for [email protected]  |
         DONE 4 checking for [email protected] took 1
         START 4 checking for [email protected]      |
         DONE 4 checking for [email protected] took 1|
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 1
         START 4 checking for urigo:[email protected]
         DONE 4 checking for urigo:[email protected] took 1
         START 4 checking for [email protected]     |
         DONE 4 checking for [email protected] took 1
         START 4 checking for [email protected]_1|
         DONE 4 checking for [email protected]_1 took 1
         START 4 checking for [email protected]
         DONE 4 checking for [email protected] took 0
         START 4 checking for xolvio:[email protected]
         DONE 4 checking for xolvio:[email protected] took 2
       DONE 3 downloading missing packages took 305
     END CAPTURE 2 undefined took 307
     START 2 building local packages
       START 3 loading package [email protected]_1
       DONE 3 loading package [email protected]_1 took 58
       START 3 loading package [email protected]_1
       DONE 3 loading package [email protected]_1 took 52
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 17
       START 3 loading package [email protected]_1
       DONE 3 loading package [email protected]_1 took 207
       START 3 loading package [email protected]_1
       DONE 3 loading package [email protected]_1 took 146
       START 3 loading package [email protected]_1
       DONE 3 loading package [email protected]_1 took 16
       START 3 loading package [email protected]_1
       DONE 3 loading package [email protected]_1 took 32
       START 3 loading package [email protected]_1
       DONE 3 loading package [email protected]_1 took 19
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 24
       START 3 loading package [email protected]_1
       DONE 3 loading package [email protected]_1 took 16
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 6
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 14
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 15
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 21
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 9
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 9
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 12
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 12
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 47
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 5
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 4
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 10
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 22
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 14
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 11
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 13
       START 3 loading package [email protected]_1
 START CAPTURE 0 loading isopacket `mongo` took NaN
 END CAPTURE 0 loading isopacket `mongo` took 230
=> Started MongoDB.                           
       DONE 3 loading package [email protected]_1 took 388
       START 3 loading package [email protected]_1
       DONE 3 loading package [email protected]_1 took 11
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 6
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 7
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 29
       START 3 loading package [email protected] /
       DONE 3 loading package [email protected] took 9
       START 3 loading package [email protected]   /
       DONE 3 loading package [email protected] took 3
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 22
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 14
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 14
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 8
       START 3 loading package [email protected]   /
       DONE 3 loading package [email protected] took 37
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 13
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 6
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 3
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 11
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 35
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 5
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 13
       START 3 loading package [email protected]_5
       DONE 3 loading package [email protected]_5 took 52
       START 3 loading package [email protected]_1
       DONE 3 loading package [email protected]_1 took 45
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 7
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 7
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 3
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 22
       START 3 loading package [email protected]_1
       DONE 3 loading package [email protected]_1 took 8
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 15
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 10
       START 3 loading package [email protected]_1
       DONE 3 loading package [email protected]_1 took 20
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 579
       START 3 loading package barbatus:[email protected]
       DONE 3 loading package barbatus:[email protected] took 179
       START 3 loading package barbatus:[email protected]_1
       DONE 3 loading package barbatus:[email protected]_1 took 13
       START 3 loading package barbatus:[email protected]
       DONE 3 loading package barbatus:[email protected] took 2
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 10
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 60
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 6
       START 3 loading package barbatus:[email protected]
       DONE 3 loading package barbatus:[email protected] took 76
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 3
       START 3 loading package barbatus:[email protected]
       DONE 3 loading package barbatus:[email protected] took 180
       START 3 loading package [email protected]_1
       DONE 3 loading package [email protected]_1 took 4
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 3
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 5
       START 3 loading package [email protected]_1
       DONE 3 loading package [email protected]_1 took 20
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 54
       START 3 loading package dispatch:[email protected]
       DONE 3 loading package dispatch:[email protected] took 9
       START 3 loading package practicalmeteor:[email protected]
       DONE 3 loading package practicalmeteor:[email protected] took 9
       START 3 loading package dispatch:[email protected]
       DONE 3 loading package dispatch:[email protected] took 16
       START 3 loading package [email protected]_1
       DONE 3 loading package [email protected]_1 took 10
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 2
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 2
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 7
       START 3 loading package hwillson:[email protected]
       DONE 3 loading package hwillson:[email protected] took 164
       START 3 loading package practicalmeteor:[email protected]_2
       DONE 3 loading package practicalmeteor:[email protected]_2 took 10
       START 3 loading package practicalmeteor:[email protected]_1
       DONE 3 loading package practicalmeteor:[email protected]_1 took 10
       START 3 loading package jalik:[email protected]_1
       DONE 3 loading package jalik:[email protected]_1 took 13
       START 3 loading package matb33:[email protected]
       DONE 3 loading package matb33:[email protected] took 108
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 120
       START 3 loading package jalik:[email protected]
       DONE 3 loading package jalik:[email protected] took 3
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 2
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 2
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 2
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 2
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 2
       START 3 loading package mys:[email protected]
       DONE 3 loading package mys:[email protected] took 4
       START 3 loading package mys:[email protected]
       DONE 3 loading package mys:[email protected] took 48
       START 3 loading package practicalmeteor:[email protected]_2
       DONE 3 loading package practicalmeteor:[email protected]_2 took 3
       START 3 loading package practicalmeteor:[email protected]_6
       DONE 3 loading package practicalmeteor:[email protected]_6 took 137
       START 3 loading package tmeasday:[email protected]
       DONE 3 loading package tmeasday:[email protected] took 2
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 2
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 2
       START 3 loading package [email protected]
       DONE 3 loading package [email protected] took 20
       START 3 loading package [email protected]_1
       DONE 3 loading package [email protected]_1 took 30
       START 3 loading package tmeasday:[email protected]
       DONE 3 loading package tmeasday:[email protected] took 2
       START 3 loading package urigo:[email protected]
       DONE 3 loading package urigo:[email protected] took 18
       START 3 loading package xolvio:[email protected]
       DONE 3 loading package xolvio:[email protected] took 3
     DONE 2 building local packages took 3625
   DONE 1 preparing project took 4128
| 
| files.stat                                                        0 ms (1)
| files.unlink                                                      8 ms (1)
| files.readFile                                                    3 ms (1)
| sqlite query                                                     35 ms (1)
| bundler.readJsImage..............................................18 ms (1)
| ├─ files.readFile                                                 3 ms (5)
| └─ meteorNpm.rebuildIfNonPortable................................15 ms (2)
|    └─ meteorNpm.isPortable.......................................14 ms (21)
|       ├─ optimistic lstat                                         2 ms (21)
|       ├─ optimistic statOrNull                                    1 ms (17)
|       ├─ optimistic readJsonOrNull................................8 ms (16)
|       │  ├─ optimistic readFile...................................7 ms (16)
|       │  │  ├─ files.readFile                                     6 ms (16)
|       │  │  └─ other optimistic readFile                          1 ms
|       │  └─ other optimistic readJsonOrNull                       1 ms
|       └─ other meteorNpm.isPortable                               2 ms
| JsImage#load....................................................230 ms (1)
| ├─ runJavaScript packages/underscore.js                           4 ms (1)
| ├─ runJavaScript packages/meteor.js                               7 ms (1)
| └─ runJavaScript packages/npm-mongo.js                          219 ms (1)
| files.writeFile                                                   1 ms (1)
| ProjectContext prepareProjectForBuild.........................4,129 ms (1)
| ├─ _initializeCatalog............................................18 ms (1)
| │  ├─ LocalCatalog#initialize....................................15 ms (1)
| │  │  ├─ addPatternsToList                                        5 ms (2)
| │  │  ├─ LocalCatalog#_computeEffectiveLocalPackages              5 ms (1)
| │  │  └─ LocalCatalog#_loadLocalPackages                          5 ms (1)
| │  └─ other _initializeCatalog                                    3 ms
| ├─ _resolveConstraints..........................................171 ms (1)
| │  ├─ bundler.readJsImage........................................67 ms (1)
| │  │  ├─ files.readFile                                          33 ms (12)
| │  │  ├─ meteorNpm.rebuildIfNonPortable..........................25 ms (3)
| │  │  │  ├─ meteorNpm.isPortable.................................24 ms (14)
| │  │  │  │  ├─ optimistic lstat..................................13 ms (14)
| │  │  │  │  │  ├─ files.lstat                                     1 ms (14)
| │  │  │  │  │  └─ other optimistic lstat                         12 ms
| │  │  │  │  ├─ optimistic statOrNull                              2 ms (8)
| │  │  │  │  ├─ optimistic readJsonOrNull..........................6 ms (7)
| │  │  │  │  │  ├─ optimistic readFile.............................4 ms (7)
| │  │  │  │  │  │  ├─ files.readFile                               3 ms (7)
| │  │  │  │  │  │  └─ other optimistic readFile                    1 ms
| │  │  │  │  │  └─ other optimistic readJsonOrNull                 2 ms
| │  │  │  │  └─ other meteorNpm.isPortable                         2 ms
| │  │  │  └─ other meteorNpm.rebuildIfNonPortable                  1 ms
| │  │  └─ other bundler.readJsImage                                9 ms
| │  ├─ JsImage#load...............................................72 ms (1)
| │  │  ├─ runJavaScript packages/underscore.js                     5 ms (1)
| │  │  ├─ runJavaScript packages/meteor.js                        11 ms (1)
| │  │  ├─ runJavaScript packages/modules-runtime.js                3 ms (1)
| │  │  ├─ runJavaScript packages/modules.js                       10 ms (1)
| │  │  ├─ runJavaScript packages/ejson.js                          1 ms (1)
| │  │  ├─ runJavaScript packages/check.js                          2 ms (1)
| │  │  ├─ runJavaScript packages/package-version-parser.js         3 ms (1)
| │  │  ├─ runJavaScript packages/logic-solver.js                  33 ms (1)
| │  │  ├─ runJavaScript packages/constraint-solver.js              3 ms (1)
| │  │  └─ other JsImage#load                                       2 ms
| │  ├─ Select Package Versions.....................................5 ms (1)
| │  │  └─ new CS.Input                                             4 ms (1)
| │  ├─ files.writeFileAtomically...................................3 ms (1)
| │  │  └─ files.writeFile                                          2 ms (1)
| │  └─ other _resolveConstraints                                  24 ms
| ├─ _downloadMissingPackages.....................................308 ms (1)
| │  ├─ Isopack.readMetadataFromDirectory.........................144 ms (101)
| │  │  ├─ files.stat                                               9 ms (101)
| │  │  ├─ files.readFile                                         113 ms (101)
| │  │  └─ other Isopack.readMetadataFromDirectory                 22 ms
| │  └─ other _downloadMissingPackages                            165 ms
| ├─ _buildLocalPackages........................................3,626 ms (1)
| │  ├─ IsopackCache Load local isopack.........................3,610 ms (101)
| │  │  ├─ files.stat                                               5 ms (101)
| │  │  ├─ Isopack#initFromPath.................................3,502 ms (101)
| │  │  │  ├─ files.realpath                                       93 ms (101)
| │  │  │  ├─ Isopack.readMetadataFromDirectory....................49 ms (101)
| │  │  │  │  ├─ files.stat                                         3 ms (101)
| │  │  │  │  ├─ files.readFile                                    30 ms (101)
| │  │  │  │  └─ other Isopack.readMetadataFromDirectory           16 ms
| │  │  │  ├─ files.readFile                                      149 ms (303)
| │  │  │  ├─ files.open                                          131 ms (1318)
| │  │  │  ├─ files.read                                          310 ms (1318)
| │  │  │  ├─ files.close                                         116 ms (1318)
| │  │  │  ├─ bundler.readJsImage...............................1,210 ms (9)
| │  │  │  │  ├─ files.readFile                                   194 ms (198)
| │  │  │  │  ├─ meteorNpm.rebuildIfNonPortable...................946 ms (56)
| │  │  │  │  │  ├─ files.readdir                                  17 ms (56)
| │  │  │  │  │  ├─ meteorNpm.isPortable..........................905 ms (966)
| │  │  │  │  │  │  ├─ optimistic lstat...........................209 ms (966)
| │  │  │  │  │  │  │  ├─ files.lstat                             107 ms (966)
| │  │  │  │  │  │  │  └─ other optimistic lstat                  102 ms
| │  │  │  │  │  │  ├─ optimistic statOrNull.......................84 ms (838)
| │  │  │  │  │  │  │  ├─ files.stat                               22 ms (838)
| │  │  │  │  │  │  │  └─ other optimistic statOrNull              62 ms
| │  │  │  │  │  │  ├─ optimistic readJsonOrNull..................487 ms (821)
| │  │  │  │  │  │  │  ├─ optimistic readFile.....................433 ms (821)
| │  │  │  │  │  │  │  │  ├─ files.readFile                       369 ms (821)
| │  │  │  │  │  │  │  │  └─ other optimistic readFile             64 ms
| │  │  │  │  │  │  │  └─ other optimistic readJsonOrNull          54 ms
| │  │  │  │  │  │  ├─ optimistic readdir...........................4 ms (18)
| │  │  │  │  │  │  │  ├─ files.readdir                             3 ms (18)
| │  │  │  │  │  │  │  └─ other optimistic readdir                  1 ms
| │  │  │  │  │  │  ├─ meteorNpm.isPortable........................67 ms (92)
| │  │  │  │  │  │  │  ├─ optimistic lstat.........................19 ms (92)
| │  │  │  │  │  │  │  │  ├─ files.lstat                           10 ms (92)
| │  │  │  │  │  │  │  │  └─ other optimistic lstat                 8 ms
| │  │  │  │  │  │  │  ├─ meteorNpm.isPortable.....................45 ms (23)
| │  │  │  │  │  │  │  │  ├─ optimistic lstat.......................2 ms (23)
| │  │  │  │  │  │  │  │  │  └─ files.lstat                         1 ms (23)
| │  │  │  │  │  │  │  │  ├─ meteorNpm.isPortable..................41 ms (42)
| │  │  │  │  │  │  │  │  │  ├─ optimistic lstat....................5 ms (42)
| │  │  │  │  │  │  │  │  │  │  ├─ files.lstat                      3 ms (42)
| │  │  │  │  │  │  │  │  │  │  └─ other optimistic lstat           2 ms
| │  │  │  │  │  │  │  │  │  ├─ optimistic statOrNull...............2 ms (9)
| │  │  │  │  │  │  │  │  │  │  └─ files.stat                       1 ms (9)
| │  │  │  │  │  │  │  │  │  ├─ optimistic readdir..................3 ms (9)
| │  │  │  │  │  │  │  │  │  │  └─ files.readdir                    2 ms (9)
| │  │  │  │  │  │  │  │  │  ├─ meteorNpm.isPortable...............27 ms (157)
| │  │  │  │  │  │  │  │  │  │  ├─ optimistic lstat................22 ms (157)
| │  │  │  │  │  │  │  │  │  │  │  ├─ files.lstat                  12 ms (157)
| │  │  │  │  │  │  │  │  │  │  │  └─ other optimistic lstat        9 ms
| │  │  │  │  │  │  │  │  │  │  ├─ meteorNpm.isPortable.............2 ms (12)
| │  │  │  │  │  │  │  │  │  │  │  └─ optimistic lstat..............2 ms (12)
| │  │  │  │  │  │  │  │  │  │  │     └─ files.lstat                1 ms (12)
| │  │  │  │  │  │  │  │  │  │  └─ other meteorNpm.isPortable       2 ms
| │  │  │  │  │  │  │  │  │  └─ other meteorNpm.isPortable          4 ms
| │  │  │  │  │  │  │  │  └─ other meteorNpm.isPortable             1 ms
| │  │  │  │  │  │  │  └─ other meteorNpm.isPortable                2 ms
| │  │  │  │  │  │  └─ other meteorNpm.isPortable                  54 ms
| │  │  │  │  │  └─ other meteorNpm.rebuildIfNonPortable           23 ms
| │  │  │  │  └─ other bundler.readJsImage                         70 ms
| │  │  │  ├─ meteorNpm.rebuildIfNonPortable....................1,239 ms (32)
| │  │  │  │  ├─ files.readdir                                     14 ms (32)
| │  │  │  │  ├─ meteorNpm.isPortable...........................1,202 ms (1051)
| │  │  │  │  │  ├─ optimistic lstat..............................482 ms (1051)
| │  │  │  │  │  │  ├─ files.lstat                                382 ms (1051)
| │  │  │  │  │  │  └─ other optimistic lstat                     100 ms
| │  │  │  │  │  ├─ optimistic statOrNull.........................107 ms (987)
| │  │  │  │  │  │  ├─ files.stat                                  27 ms (987)
| │  │  │  │  │  │  └─ other optimistic statOrNull                 80 ms
| │  │  │  │  │  ├─ optimistic readJsonOrNull.....................492 ms (972)
| │  │  │  │  │  │  ├─ optimistic readFile........................431 ms (972)
| │  │  │  │  │  │  │  ├─ files.readFile                          354 ms (972)
| │  │  │  │  │  │  │  └─ other optimistic readFile                77 ms
| │  │  │  │  │  │  └─ other optimistic readJsonOrNull             60 ms
| │  │  │  │  │  ├─ optimistic readdir..............................9 ms (17)
| │  │  │  │  │  │  ├─ files.readdir                                6 ms (17)
| │  │  │  │  │  │  └─ other optimistic readdir                     3 ms
| │  │  │  │  │  ├─ meteorNpm.isPortable...........................64 ms (96)
| │  │  │  │  │  │  ├─ optimistic lstat............................18 ms (96)
| │  │  │  │  │  │  │  ├─ files.lstat                              10 ms (96)
| │  │  │  │  │  │  │  └─ other optimistic lstat                    8 ms
| │  │  │  │  │  │  ├─ meteorNpm.isPortable........................43 ms (23)
| │  │  │  │  │  │  │  ├─ optimistic lstat..........................3 ms (23)
| │  │  │  │  │  │  │  │  ├─ files.lstat                            2 ms (23)
| │  │  │  │  │  │  │  │  └─ other optimistic lstat                 1 ms
| │  │  │  │  │  │  │  └─ meteorNpm.isPortable.....................39 ms (42)
| │  │  │  │  │  │  │     ├─ optimistic lstat.......................6 ms (42)
| │  │  │  │  │  │  │     │  ├─ files.lstat                         3 ms (42)
| │  │  │  │  │  │  │     │  └─ other optimistic lstat              2 ms
| │  │  │  │  │  │  │     ├─ optimistic statOrNull                  1 ms (9)
| │  │  │  │  │  │  │     ├─ optimistic readdir.....................2 ms (9)
| │  │  │  │  │  │  │     │  └─ files.readdir                       1 ms (9)
| │  │  │  │  │  │  │     ├─ meteorNpm.isPortable..................27 ms (157)
| │  │  │  │  │  │  │     │  ├─ optimistic lstat...................21 ms (157)
| │  │  │  │  │  │  │     │  │  ├─ files.lstat                     12 ms (157)
| │  │  │  │  │  │  │     │  │  └─ other optimistic lstat          10 ms
| │  │  │  │  │  │  │     │  ├─ optimistic readdir                  1 ms (4)
| │  │  │  │  │  │  │     │  ├─ meteorNpm.isPortable................2 ms (12)
| │  │  │  │  │  │  │     │  │  └─ optimistic lstat                 2 ms (12)
| │  │  │  │  │  │  │     │  └─ other meteorNpm.isPortable          2 ms
| │  │  │  │  │  │  │     └─ other meteorNpm.isPortable             3 ms
| │  │  │  │  │  │  └─ other meteorNpm.isPortable                   2 ms
| │  │  │  │  │  └─ other meteorNpm.isPortable                     47 ms
| │  │  │  │  └─ other meteorNpm.rebuildIfNonPortable              22 ms
| │  │  │  └─ other Isopack#initFromPath                          206 ms
| │  │  ├─ Isopack#getStrongOrderedUsedAndImpliedPackages           7 ms (101)
| │  │  └─ other IsopackCache Load local isopack                   95 ms
| │  └─ other _buildLocalPackages                                  16 ms
| ├─ _saveChangedMetadata                                           3 ms (1)
| └─ other ProjectContext prepareProjectForBuild                    3 ms
| 
| Top leaves:
| files.readFile...........................................1,259 ms (2540)
| files.lstat................................................545 ms (2710)
| files.read.................................................310 ms (1318)
| other optimistic lstat.....................................257 ms (2675)
| other Isopack#initFromPath.................................206 ms (101)
| other _downloadMissingPackages.............................165 ms (1)
| other optimistic readFile..................................143 ms (1816)
| other optimistic statOrNull................................143 ms (1834)
| files.open.................................................131 ms (1318)
| other meteorNpm.isPortable.................................121 ms (2708)
| other optimistic readJsonOrNull............................117 ms (1816)
| files.close................................................116 ms (1318)
| 
| (#1) Total: 4,424 ms (ProjectContext prepareProjectForBuild)
| 
 END CAPTURE 0 undefined took 4192           \
| (#2) Profiling: Build App
 START CAPTURE 0 building the application took NaN
   START 1 determining active plugins
     START 2 loading plugin `minifyStdCSS` from package `standard-minifier-css`
     DONE 2 loading plugin `minifyStdCSS` from package `standard-minifier-css` took 98
     START 2 running registerMinifier callback in package standard-minifier-css
     DONE 2 running registerMinifier callback in package standard-minifier-css took 1
     START 2 loading plugin `minifyStdJS` from package `standard-minifier-js`
     DONE 2 loading plugin `minifyStdJS` from package `standard-minifier-js` took 84
     START 2 running registerMinifier callback in package standard-minifier-js
     DONE 2 running registerMinifier callback in package standard-minifier-js took 0
     START 2 loading plugin `Angular2 Compilers` from package `angular2-compilers`
     DONE 2 loading plugin `Angular2 Compilers` from package `angular2-compilers` took 1821
     START 2 running registerCompiler callback in package angular2-compilers
     DONE 2 running registerCompiler callback in package angular2-compilers took 1
     START 2 running registerCompiler callback in package angular2-compilers
     DONE 2 running registerCompiler callback in package angular2-compilers took 0
     START 2 loading plugin `compileFonts` from package `mys:fonts`
     DONE 2 loading plugin `compileFonts` from package `mys:fonts` took 295
     START 2 running registerCompiler callback in package mys:fonts
     DONE 2 running registerCompiler callback in package mys:fonts took 0
     *START 2 loading plugin `basicFileTypes` from package `meteor`*
     DONE 2 loading plugin `basicFileTypes` from package `meteor` took 0
     *START 2 running registerCompiler callback in package meteor*
     DONE 2 running registerCompiler callback in package meteor took 0
    * START 2 loading plugin `typescript` from package `barbatus:typescript`*

Note that lines with the *

Not detecting .ts files

Just spent the past couple hours trying to Migrate a Meteor 1.3 app partially to TypeScript. I installed this package, converted my formerly .coffee files to JS, gave the resulting JS a .ts extension and started gradually adding types. On app launch I received no errors, which was suspicious. When I modified my .ts files or created new ones, I didn't see them detected and the server or client restarted.

As an experiment, I created a new Meteor 1.3 app, added this package and spun it up. I then touched server/index.ts, but I never saw the server restart. By way of contrast, touch server/index.js causes a restart even though the files are both empty.

Am I missing something? Of possible note is that I haven't imported the Meteor types because I understand they haven't been updated to Meteor 1.3 yet. I also haven't really delved into typings at all. I'm currently just using TS to replace the check package, and to give my functions type annotations. Not sure if that might be the cause. I do plan to investigate the typings ecosystem eventually but thought I'd do so incrementally.

Thanks.

Error with empty .ts files

I have got little error with the last versions when I create an empty .ts file.
It works well when I add anything on this file.

Errors prevented startup:

   While processing files with barbatus:typescript (for target web.browser):

   /home/hugo/.meteor/packages/barbatus_typescript/.0.2.0-beta.9.cmhutm++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/plugin.typescript.os/npm/barbatus_typescript-compiler/node_modules/meteor-typescript/node_modules/typescript/lib/typescript.js:48719:61:
   Cannot call method 'getLength' of null
   at createLanguageServiceSourceFile
   (/home/hugo/.meteor/packages/barbatus_typescript/.0.2.0-beta.9.cmhutm++os+web.browser+web.cordova/plugin.typescript.os/npm/node_modules/meteor/plugin.typescript.os/npm/barbatus_typescript-compiler/node_modules/meteor-typescript/node_modules/typescript/lib/typescript.js:48719:61)

Incredibly long builds with barbatus:typescript

When using barbatus:typescript plugin and making trivial changes to my app, the typescript transpile step is taking more than 1/3 of the total build time:

| (#2) Profiling: Build App
Compiling main app HTML file: client/index.html
|  Building the application                  -
| files.readFile                                                  161 ms (3)
| bundler.readJsImage                                              10 ms (1)
| JsImage#load                                                    388 ms (1)
| files.exists                                                    117 ms (4)
| Build App....................................................37,928 ms (1)
| ├─ compiler.compile(the app)..................................5,291 ms (1)
| │  └─ compileUnibuild (the app)...............................5,290 ms (2)
| │     ├─ Isopack#ensurePluginsInitialized.....................1,353 ms (24)
| │     │  └─ JsImage#load......................................1,348 ms (5)
| │     │     ├─ runJavaScript packages/meteor.js.................495 ms (4)
| │     │     │  └─ files.exists                                  435 ms (24)
| │     │     └─ runJavaScript packages/ecmascript-runtime.js     252 ms (2)
| │     ├─ files.realpath                                         379 ms (2183)
| │     ├─ files.readdir                                          636 ms (4367)
| │     ├─ files.stat                                             517 ms (40153)
| │     ├─ files.readFile                                         623 ms (4162)
| │     └─ other compileUnibuild (the app)                      1,685 ms
| ├─ bundler.bundle..makeClientTarget..........................18,010 ms (1)
| │  └─ Target#make............................................18,010 ms (1)
| │     ├─ Target#_runCompilerPlugins..........................10,083 ms (1)
| │     │  ├─ plugin ecmascript                                   803 ms (1)
| │     │  └─ plugin barbatus:typescript                        9,156 ms (1)
| │     ├─ Target#_emitResources................................7,185 ms (1)
| │     │  ├─ PackageSourceBatch.computeJsOutputFilesMap........6,408 ms (1)
| │     │  │  ├─ ImportScanner#_findImportedModuleIdentifiers   5,117 ms (732)
| │     │  │  ├─ ImportScanner#_tryToResolveImportedPath..........828 ms (2249)
| │     │  │  │  ├─ files.stat                                    432 ms (8547)
| │     │  │  │  └─ other ImportScanner#_tryToResolveImportedPath 305 ms
| │     │  │  └─ ImportScanner#_readFile                          253 ms (658)
| │     │  └─ PackageSourceBatch#getResources.....................771 ms (57)
| │     │     └─ PackageSourceBatch#_linkJS.......................770 ms (57)
| │     │        ├─ files.readFile                                506 ms (57)
| │     │        └─ other PackageSourceBatch#_linkJS              262 ms
| │     └─ ClientTarget#minifyCss.................................683 ms (1)
| │        └─ mergeCss............................................668 ms (1)
| │           └─ CssTools.parseCss                                302 ms (2)
| ├─ bundler.bundle..makeServerTarget..........................10,377 ms (1)
| │  └─ Target#make............................................10,377 ms (1)
| │     ├─ Target#_runCompilerPlugins...........................9,896 ms (1)
| │     │  └─ plugin barbatus:typescript                        9,762 ms (1)
| │     └─ Target#_emitResources..................................465 ms (1)
| │        └─ PackageSourceBatch.computeJsOutputFilesMap..........390 ms (1)
| │           └─ ImportScanner#_findImportedModuleIdentifiers     259 ms (197)
| └─ bundler writeSiteArchive...................................4,237 ms (1)
|    └─ bundler writeTargetToPath...............................4,134 ms (2)
|       ├─ ClientTarget#write                                     214 ms (1)
|       └─ ServerTarget#write...................................3,917 ms (1)
|          ├─ JsImage#write                                     1,980 ms (1)
|          └─ other ServerTarget#write                          1,930 ms
|
| Top leaves:
| ImportScanner#_findImportedModuleIdentifiers.............5,376 ms (929)
| other ServerTarget#write.................................1,930 ms (1)
| other compileUnibuild (the app)..........................1,685 ms (2)
| files.readFile...........................................1,632 ms (5497)
| files.stat.................................................966 ms (49248)
| files.readdir..............................................638 ms (4384)
| files.exists...............................................590 ms (88)
| files.realpath.............................................443 ms (2310)
| other ImportScanner#_tryToResolveImportedPath..............305 ms (2249)
| CssTools.parseCss..........................................302 ms (2)
| other PackageSourceBatch#_linkJS...........................262 ms (57)
| CssTools.stringifyCss......................................200 ms (1)
| other PackageSourceBatch.computeJsOutputFilesMap...........182 ms (2)
| sha1.......................................................155 ms (5663)
| files.writeFile............................................112 ms (287)
| Babel.compile..............................................101 ms (70)
|
| (#2) Total: 38,603 ms (Build App)

Specifically this line here:

| ├─ bundler.bundle..makeClientTarget..........................18,010 ms (1)
| │  └─ Target#make............................................18,010 ms (1)
| │     ├─ Target#_runCompilerPlugins..........................10,083 ms (1)
| │     │  ├─ plugin ecmascript                                   803 ms (1)
| │     │  └─ plugin barbatus:typescript                        9,156 ms (1)

Any thing I can do to help speed this up?

ES6 target on server

I tried to add the tsconfig.json file in the server folder but I get the following error for the server:

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

any clue on this ?

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.