Instructions for how to compile without Ivy?
See original GitHub issueWhen 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:
But it would have been nice if it did this by default or the instructions were included in the message.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@kolkov, the
npm linkissue is currently being tracked here: https://github.com/angular/angular/issues/33395This 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.