Skip to content

[Bug] libraries dependencies using index.ts #11210

Closed

Description

@piernik

Bug Report or Feature Request (mark with an x)

- [x] bug report
- [ ] feature request

Area

- [ ] devkit
- [ ] schematics

Versions

node v8.11.2
npm v6.1.0

Repro steps

Here is project: https://github.com/piernik/lib-deps-bug

It contains two libraries. Second is dependent on First. Build first lib using npm run first:build, then build second using npm run second:build - it fails.
Now go to https://github.com/piernik/lib-deps-bug/blob/master/projects/first/src/lib/first.module.ts and comment in import {MyPipePipe} from './pipes'; and comment out // import {MyPipePipe} from './pipes/my-pipe/my-pipe.pipe';
It is working now.

The log given by the failure

Building Angular Package
Building entry point 'second'
Rendering Stylesheets
Rendering Templates
Compiling TypeScript sources through ngc

: Unexpected value 'undefined' exported by the module 'FirstModule in C:/strony/www/libsNg/deps/dist/first/first.d.ts'
: Unexpected value 'undefined' declared by the module 'FirstModule in C:/strony/www/libsNg/deps/dist/first/first.d.ts'

Desired functionality

Pipes folder is exported as a whole with index.ts so it should work.

Activity

  1. alan-agius4 commented on Jun 13, 2018

    @alan-agius4
    Collaborator

    Seems to me that this is also related to angular/angular#23713

  2. filipesilva commented on Jun 13, 2018

    @filipesilva
    Contributor

    I have heard of this problem as well, and think the issue where it is best described is the one @alan-agius4 mentioned. I am closing this issue to focus the discussion there.

  3. angular-automatic-lock-bot commented on Sep 8, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  4. locked and limited conversation to collaborators on Sep 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions