question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] libraries dependencies using index.ts

See original GitHub issue

Type of Issue

[x] Bug Report
[ ] Feature Request

Description

I thinks it’s a angular-cli issue, but what do I know 😃 I posted it there and here as well: https://github.com/angular/angular-cli/issues/11210

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.

Expected Behaviour

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

Version Information

In project I use "ng-packagr": "^3.0.0-rc.2", that comes with angular-cli but also tried 3.0.1 this the same result.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
piernikcommented, Jun 13, 2018

Ok thanks for help. Hope they fix it soon.

0reactions
github-actions[bot]commented, Jun 19, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

0 - Stack Overflow
I just setup a project with angular cli and have an issue using the library. I am using my library in the project...
Read more >
Common TypeScript module problems and how to solve them
Problem 1: Irregular location of dependencies ; node_modules in the ; src directory even though ; node_modules is located outside the ; src ......
Read more >
Schematics for libraries - Angular
The Schematics framework offers many utility functions to create and use rules when running a schematic. projects/my-lib/schematics/my-service/index.ts (Imports)
Read more >
TypeScript - webpack
In this guide we will learn how to integrate TypeScript with webpack. Basic Setup. First install the TypeScript compiler and loader by running:...
Read more >
Documentation - tsc CLI Options - TypeScript
Flag Type Default ‑‑allowJs boolean false ‑‑allowUmdGlobalAccess boolean false ‑‑allowUnreachableCode boolean
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found