Ng-packagr: [v2] [migration] Cannot find module 'tsickle/src/tsickle'

Created on 8 Feb 2018  路  4Comments  路  Source: ng-packagr/ng-packagr

Error when doing ng-packagr -p ng-package.json

Error: Cannot find module 'tsickle/src/tsickle'
    at Function.Module._resolveFilename (module.js:527:15)
    at Function.Module._load (module.js:476:23)
    at Module.require (module.js:568:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:\Users\louislow\Documents\projects\my-component-library\node_modules\ng-packagr\lib\ngc\create-emit-callback.js:15:17)
    at Module._compile (module.js:624:30)
    at Object.Module._extensions..js (module.js:635:10)
    at Module.load (module.js:545:32)
    at tryModuleLoad (module.js:508:12)
    at Function.Module._load (module.js:500:3)

ng-package.json

{
    "$schema": "./node_modules/ng-packagr/ng-package.schema.json",
    "lib": {
        "entryFile": "public_api.ts"
    }
}

public_api.ts
export * from './src/app/modules/header/header.module';

Version Information

` ng-packagr: 2.0.0 angular/cli: 1.6.8 angular/compiler-cli: 4.2.4 typescript: 2.6.2 rxjs: 5.4.2 node: 8.6.0 npm: 5.3.0

Most helpful comment

$ yarn add --dev ng-packagr@^2.0.0 @angular/compiler@^5.0.0 @angular/compiler-cli@^5.0.0 tsickle

All 4 comments

$ yarn add --dev ng-packagr@^2.0.0 @angular/compiler@^5.0.0 @angular/compiler-cli@^5.0.0 tsickle

For npm: npm i --save-dev tsickle

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cnotarioArtica picture cnotarioArtica  路  4Comments

ashley-hunter picture ashley-hunter  路  3Comments

MalliswariKP picture MalliswariKP  路  4Comments

alankin picture alankin  路  5Comments

hreyeslo picture hreyeslo  路  4Comments