Skip to content

MeteorCLI/lazy-loading not working in AOT w/ Rollup and production mode #1895

Open
@enghong

Description

@enghong

I'm trying to build the MeteorCLI/lazy-loading with the latest version of angular-compiler (0.3.0) and meteor 1.6.1

$ git clone https://github.com/Urigo/angular-meteor.git
$ cd angular-meteor/examples/MeteorCLI/lazy-loading
$ meteor update --all-packages
$ meteor npm install
$ AOT=1 ROLLUP=1 meteor --production

And I get the following error:

=> Started proxy.
[client]: ES2015 modules Compilation: 1054.113ms
[client]: HTML Files Compilation: 7.214ms    /
[client]: SCSS Files Compilation: 1.969ms    /
[server]: ES2015 modules Compilation: 362.716ms
[server]: HTML Files Compilation: 0.015ms    -
=> Errors prevented startup:

   While processing files with angular-compilers (for target web.browser):
   packages/angular-typescript-compiler/index.js:400:5: createCompilerHost is not defined
   at AngularTsCompiler.createCompilerHost (packages/angular-typescript-compiler/index.js:400:5)
   at Promise.asyncApply (packages/angular-typescript-compiler/index.js:294:31)
   at
   /Users/enghong/.meteor/packages/meteor-tool/.1.6.1.194wnfx.1kqp++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/meteor-promise/fiber_pool.js:43:40


   While processing files with angular-compilers (for target os.osx.x86_64):
   packages/angular-typescript-compiler/index.js:400:5: createCompilerHost is not defined
   at AngularTsCompiler.createCompilerHost (packages/angular-typescript-compiler/index.js:400:5)
   at Promise.asyncApply (packages/angular-typescript-compiler/index.js:294:31)
   at
   /Users/enghong/.meteor/packages/meteor-tool/.1.6.1.194wnfx.1kqp++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/meteor-promise/fiber_pool.js:43:40


=> Your application has errors. Waiting for file change.
=> Started MongoDB.

Is there something i'm missing there?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions