Scully doesn't generate anything
See original GitHub issue🐞 Bug report
Trying to install the blog I am not getting any changes to the project. The package does nothing at all. But the dependency @scullyio/init
is installed.
Dependency @scullyio/ng-lib
NOT installed.
Description
🔬 Minimal Reproduction
- Run this command in terminal
ng add @scullyio/init
- After choosing:
? Which route renderer would you like to use?
> Scully platform server
nothing happens (I don’t get any answer at all):
Scully doesn’t create config file and doesn’t import ScullyLibModule
in the main application module.
💻Your Environment
Angular Version:
Angular CLI: 14.0.7
Node: 16.16.0
Package Manager: npm 8.14.0
OS: win32 x64
Angular: 14.1.0
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1401.0
@angular-devkit/build-angular 14.1.0
@angular-devkit/core 14.1.0
@angular-devkit/schematics 14.0.7
@angular/cli 14.0.7
@schematics/angular 14.0.7
rxjs 7.5.6
typescript 4.7.4
Scully Version:
"@scullyio/init": "^2.1.36"
🔥 Exception or Error
Issue Analytics
- State:
- Created a year ago
- Reactions:3
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Issues · scullyio/scully - GitHub
Scully fail to make pages - plugin "storeRoutes has thrown the below error, bug Something isn't working. #1630 opened 2 weeks ago by...
Read more >Scully doesn't generate static files for blog-list component
I'm trying to develop a blog with Scully. There are 3 routes. Homepage, Blog page and dynamic Blog Post page. Scully generate static...
Read more >Scully Build Does Not Finish - Netlify Support Forums
I have it all working on my local machine, but when I try to do a branch deploy to test, the build doesn't...
Read more >Frequently Asked Questions - Scully.io
How do I fix plugin build errors related to the `express-serve-static-core` module? ... Scully doesn't seem to find the plugins I just declared....
Read more >Why is Scully so skeptical? : r/XFiles - Reddit
He doesn't care if something makes sense or not. ... it actually makes Mulder a better investigator because he uses it as incentive...
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 FreeTop 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
Top GitHub Comments
Hitting the same issue (even from a brand new Angular 14 app workspace). Debugging a little bit, exception being thown is:
TypeError: Cannot read properties of null (reading 'toString')
at https://github.com/scullyio/scully/blob/v2.1.39/libs/scully-schematics/src/utils/utils.ts#L151 (line 149 also throws the same error trying to invoke
null.toString()
)Seems like the issue is
project
being'defaultProject'
, for which thehost.read()
calls returnnull
.Initializing with an explicit
--project
command-line argument seems to get past this problem:but if you choose what seems like the default renderer option (Scully platform server), the init schematic fails on a later step with:
(I did not try going in and updating Scully’s @angular/platform-server version to 14).
But trying to init again and choosing Pupeteer completed the init schematic successfully.
Side note, I then had to remove the extra
--
from the package.json Scully commands:This default generated script did NOT work work (running from Windows Terminal PowerShell 7, though I would hope that doesn’t affect behavior):
As @Lindurion and @SanderElias suggested, this worked for me:
Where
PROJECT_NAME
is the one specified underangular.json
Output: