projectRoot missing in "scully.json" due to fs_extra_1.pathExists is not a function
See original GitHub issueSteps to Reproduce
ng add @scullyio/init
ng build
npm run scully
Error
npm run scully
TypeError: fs_extra_1.pathExists is not a function
at Object.exports.compileConfig (/Users/splaktar/Git/.../node_modules/@scullyio/scully/bin/utils/compileConfig.js:15:32)
at loadIt (/Users/splaktar/Git/.../node_modules/@scullyio/scully/bin/utils/config.js:15:50)
at Object.<anonymous> (/Users/splaktar/Git/.../node_modules/@scullyio/scully/bin/utils/config.js:50:22)
at Module._compile (internal/modules/cjs/loader.js:956:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
at Module.load (internal/modules/cjs/loader.js:812:32)
at Function.Module._load (internal/modules/cjs/loader.js:724:14)
at Module.require (internal/modules/cjs/loader.js:849:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/Users/splaktar/Git/.../node_modules/@scullyio/scully/bin/routerPlugins/contentFolderPlugin.js:6:18)
projectRoot missing in "scully.json"
No routes defined in "scully.config"
Looking at my scully.config.js
file:
exports.config = {
projectRoot: "./src/app",
routes: {
}
};
The projectRoot
is defined and seems to be correct for my repo.
Since I don’t have any routes that have params, do I need to define routes: {}
in scully.config.js
?
The error message seems to be referring to the wrong file name? scully.json
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Multiple root routing modules found · Issue #265 · scullyio/scully
json /tsconfig.app.json". Using the apps source folder as source. This might lead to unpredictable results Error: Multiple root routing modules ...
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
Not sure. I’m on macOS Catalina running the following
Thanks for the PR! Good find. I still wonder why this doesn’t pop up for ourselves tho.