Open vamidi opened 4 years ago
Also getting this. It's reproducible from the examples/Angular8 project.
Wow, there are so many discusions and no solution
https://github.com/ng-packagr/ng-packagr/issues/892 https://github.com/ng-packagr/ng-packagr/issues/355 https://github.com/ng-packagr/ng-packagr/issues/594
So this is something caused by the packager?
I think yes
Do you have the same issue when you try building your own repository?
yes
ng build --prod --aot=false --build-optimizer=false
is working, but yea not a great solution
I also have this issue. From the other referenced issues, it seems to be an issue with the generated metadata.json
file and may be related to barrel (index.ts) files.
Yesss that is indeed the case I read about that, Do you have more knowlegde on barrel files? @Saabertooth
@Ni55aN I see in your ng-package.json file a search for schema. do I have install ng-packagr
?
Might that be the cause why it is not working?
Also is there no sulotion to temporary embed javascript in the component like jquery?
@qualmon and @Saabertooth I made a workaround for this. make a rete.module file in your own project with the code below inside. Then include the file in your name.module.ts
that worked for me!
super.ngOnInit()
and create new template elements mine looks like thisngx-rete-socket
- for the SocketComponent
ngxReteSocket
- for the socket directive
ngxReteControl
- for the control directive
ngxKebab
- for the kebab pipe
my case it is ngx because of tslint of the nebalar library you can create whatever you want.
@Ni55aN maybe you know why this works and make this work for the next release? I don't think is has to do with barrel files you doing it right.
@vamidi thanks for the hints, man. I did pretty much the same. I just copied the entire source code from https://github.com/retejs/angular-render-plugin/tree/master/src into my project and used that instead of the npm package. Kind of stupid though...
So anyone made any progress figuring out how to resolve the error? Read through a lot of GitHub issues but their suggestions didn't seem to solve it either.
I have no solution yet myself. I still copied the whole thing over and work from there.
Hi,
When I run npm start everything runs fine in the development phase, but when I run npm run build:prod it gives me this error.