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.

Ivy: using local npm package does not compile

See original GitHub issue

Affected Package

compiler.

Is this a regression?

did work with 8.x

Description

I have a local npm package declared like.

"@eiswind/proto-client-api": "../frontendclient/target/generated-sources/openapi/",

This used to work with 8.x but with 9 it gives me a trace like follows:

ERROR in .client/target/generated-sources/openapi/index.ts
Module build failed (from ./node_modules/@ngtools/webpack/src/index.js):
Error: /home/thomas/projects/eiswind/angular-proto-nebular/frontendclient/target/generated-sources/openapi/index.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
    at AngularCompilerPlugin.getCompiledFile (/home/thomas/projects/eiswind/angular-proto-nebular/frontend/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:909:23)
    at /home/thomas/projects/eiswind/angular-proto-nebular/frontend/node_modules/@ngtools/webpack/src/loader.js:41:31
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:94:5)
 @ ./src/app/product-management/onix-provider.service.spec.ts 4:0-60 12:25-40
 @ ./src sync \.spec\.ts$
 @ ./src/test.ts

🌍 Your Environment

**Angular Version:**
Angular CLI: 9.0.1
Node: 12.14.1
OS: linux x64

Angular: 9.0.0
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.900.1
@angular-devkit/build-angular     0.900.1
@angular-devkit/build-optimizer   0.900.1
@angular-devkit/build-webpack     0.900.1
@angular-devkit/core              9.0.1
@angular-devkit/schematics        9.0.1
@angular/cdk                      9.0.0
@angular/cli                      9.0.1
@ngtools/webpack                  9.0.1
@schematics/angular               9.0.1
@schematics/update                0.900.1
rxjs                              6.5.4

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
eiswindcommented, Feb 8, 2020

please take a look at https://github.com/eiswind/ng-35247

to reproduce: goto frontendclient/target/generated-sources/openapi (this normally gets generated) npm install npm run build

goto frontend npm install ng test

0reactions
angular-automatic-lock-bot[bot]commented, Mar 12, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't compile the Angular application with Ivy enabled
I cloned my angular application from remote and installed the dependencies. Then I tried to build an application locally using ng ...
Read more >
Understanding Angular Ivy Library Compilation | lacolaco/tech
In this post, I will explain how to compile Angular libraries with Ivy, which is now possible in Angular v11.1, and its details....
Read more >
Ahead-of-time (AOT) compilation - Angular
AOT compiles HTML templates and components into JavaScript files long before they are served to the client. With no templates to read and...
Read more >
Developing with Spring Boot
It is possible to build a Spring Boot project using Apache Ant+Ivy. The spring-boot-antlib “AntLib” module is also available to help Ant ...
Read more >
CLI for JFrog Artifactory
Currently, authentication with RSA keys is not supported when working with external package managers and build tools (Maven, Gradle, Npm, ...
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