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.

Instructions for how to compile without Ivy?

See original GitHub issue

When compiling a library we get this message:


ole@mkt:~/Github/angular-stripe-service-workspace$ ng build angular-stripe-service-lib
Building Angular Package

** It is not recommended to publish Ivy libraries to NPM repositories **

------------------------------------------------------------------------------
Building entry point '@fireflysemantics/angular-stripe-service'
------------------------------------------------------------------------------
Compiling TypeScript sources through ngc
Bundling to FESM2015
Bundling to FESM5
Bundling to UMD
Minifying UMD bundle
Copying declaration files
Writing package metadata
Built @fireflysemantics/angular-stripe-service

Then when we try to publish it we get this message:

ERROR: Trying to publish a package that has been compiled by Ivy. This is not allowed. Please delete and rebuild the package, without compiling with Ivy, before attempting to publish.

But no instructions on how to compile without Ivy. This is the answer to that:

https://stackoverflow.com/questions/59113052/how-to-compile-a-library-without-ivy?noredirect=1#comment104457188_59113052

But it would have been nice if it did this by default or the instructions were included in the message.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
alan-agius4commented, Nov 30, 2019

@kolkov, the npm link issue is currently being tracked here: https://github.com/angular/angular/issues/33395

0reactions
angular-automatic-lock-bot[bot]commented, Dec 31, 2019

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

How to compile a library without Ivy? - Stack Overflow
Within the library project there is a tsconfig.lib.json file. Here's my Angular compiler configuration:
Read more >
Angular Ivy
AOT compilation with Ivy is faster and should be used by default. In the angular.json workspace configuration file, set the default build options...
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 >
The Angular Ivy guide for library authors - DEV Community ‍ ‍
The Ivy Instruction Set which is the compilation output in directive and component rendering functions will not be finalised before Angular ...
Read more >
Angular Ivy - Medium
json that could be used to generate the compilation instructions. This means that Angular libraries cannot be AOT-compiled using View Engine.
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