Open boskiv opened 1 year ago
Also experiencing this same issue on Nx version 15.4.5
@boskiv @djmcgrath101
I managed to make the script working by adding the key sourceRoot
with the same value as projectRoot
in my scully config file. (My project is with Nx : 15.6.3)
This is what just showed me the way
storeRoutes.ts
line 16
const srcFile = join(scullyConfig.homeFolder, scullyConfig.sourceRoot, routesFileName); // wrong path generated when sourceRoot is not set
@maximegris this worked for me as well 👍 thank you!
storeRoutes.ts
@boskiv @djmcgrath101 I managed to make the script working by adding the key
sourceRoot
with the same value asprojectRoot
in the scully config file. (My project is with Nx : 15.6.3)
storeRoutes.ts
line 16const srcFile = join(scullyConfig.homeFolder, scullyConfig.sourceRoot, routesFileName); // wrong path generated when sourceRoot is not set
hi @maximegris , may i know where is storeRoutes.ts ?
Hi @FanYeeChok
The file is here
I see, that means modify existing scully code? anyway, i tot you mention sourceRoot, so i add the sourceRoot at scully.web-showroom.config.ts
and its working fine.
e.g.
export const config: ScullyConfig = {
projectRoot: "./apps/web-showroom/src",
projectName: "web-showroom",
distFolder: './dist/apps/web-showroom',
sourceRoot: "./apps/web-showroom/src",
spsModulePath: 'YOUR OWN MODULE PATH HERE',
outDir: './dist/static',
defaultPostRenderers: [Http404Plugin,'seoHrefOptimise', baseHrefRewrite],
target: 'targets',
// handle404: ['', 'index', 'baseOnly', '404', 'none'],
handle404: 'index',
routes: {
}
};
@FanYeeChok Yes it was by adding sourceRoot
in your own Scully config, not by modifying the Scully code :)
🐞 Bug report
Description
🔬 Minimal Reproduction
💻Your Environment
Angular Version:
Scully Version:
🔥 Exception or Error