Open Kamilius opened 7 years ago
As appeared, that's a known issue https://github.com/angular/angular/issues/19327 which is a duplicate of following issue https://github.com/angular/angular/issues/19026
I used gulp rename task to rename whatever you have a problem with. In your case write a task that takes that line of code in index.js and renames it without "/index/"
While trying to bundle a module with it's own routes defined using
@uirouter/angular
, original import path for it is getting renamed into@uirouter/angular/index
which causes warnings during build, and fails when trying to use it in a consumer application.$ npm run build
output:Manually removing added
/index
from a@uirouter/angular/index
string insidedist/module.umd.js
anddist/index.js
making bundled module to work correctly in consumer app.Any thoughts on why ngc/rollup behaves that way?