Closed DenysRakhuba closed 1 year ago
Was able to handle the problem with routes by removing enum and function from app-routing and from other components, where they were used. Although, the problem with styles and scripts are still there. If user proceeds directly to the page domain.com/core, it tries to get scripts and styles from 'domain.com/core/styles.css', while they are at 'domain.com/styles.css'
Solved the problem by rolling back to Angular 13. Seems like it's a problem with the latest Angular version (16)
🐞 Bug report
Hello, I'm trying to build a project with multiple pages, but facing a problem with generating routes after running build-scully
Description
The error I'm getting is next
And after finishing of script, I'm getting only one index.html in dist folder, without additional pages.
🔬 Minimal Reproduction
Here's example of my routing
And each page has it's own module with next example of routing
I have tried to update scully config by adding extra routes and it helps with generating separate folder for each page with index.html in them, although error after running build-scully doesn't disappears.
Plus, it seems like this routes has some issue with paths to scripts and styles, because after deployment. Example, if I'm entering main page (example.com) and switching to another page through menu (example.com/classic) - everything is okay. But if I will refresh the page, or try to enter directly (example.com/classic) - then it doesn't load main scripts and styles (which are at /src/styles.sass by default)
💻Your Environment
Angular Version:
I'm using Angular v16
Scully Version:
Will appreciate any help. Thanks