Open alessandro-tucci-visiontech opened 3 years ago
I partly managed to backtrace the problem. As we can see from here: https://github.com/scullyio/scully/blob/cbd940cf0f7db9f4a5b658b69f0a1b6fbebadde5/libs/scully-schematics/src/ng-add/index.ts#L25
Scully's schematics are requiring the presence of @angular/core in the dependencies section of the package.json file. It is a requirement that should be added to the doc, since an explicit @angular/core dependency is not required for a generic Angular project to work.
However, there is still something missing. Now, I'm receiving this error:
Skipping installation: Package already installed
⚠️ Skipping polyfills.ts
Install ng-lib
✅️ Added dependency
UPDATE package.json (1717 bytes)
√ Packages installed successfully.
Cannot set property 'scully' of undefined
Another implicit requirement: the package.json file is required to provide a script section, as we can see here: https://github.com/scullyio/scully/blob/cbd940cf0f7db9f4a5b658b69f0a1b6fbebadde5/libs/scully-schematics/src/scully/index.ts#L31
Therefore, I was able to add the schematics by adding:
"scripts": {}
to my package.json file
@alessandro-tucci-visiontech Thanks for the thorough description. I'll be putting those issues on our to-do
@Jefiozie Did we already address this in our schematic updates?
No I don't think so, assigning it to me for investigation
This seems also related to #1520. Not the same issue, but e might be able to solve both with the same solution.
🐞 Bug report
ng add @scullyio/init
terminates uncorrectly withCannot read property 'search' of null
. I see that another similar issue was opened (#1168) but I'm not seeing any solution. W.r.t. this other issue (#1288), the name of my Angular project is something like xyz-showcase (yes, with the hyphen)Description
🔬 Minimal Reproduction
Just run
ng add @scullyio/init
on the already-existing Angular project where I want to integrate scully💻Your Environment
Angular Version:
Scully Version:
🔥 Exception or Error