Website opens with no styles applied to it

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
andy.coxe@gmail.com
Posts: 2
Joined: 13 Aug 2022, 20:29

18 Aug 2022, 22:54

I am running Angular 14 locally on a Windows 10 PC. When I execute ng serve, I get the following message:

Warning: C:\Azure\ng-prime-apollo-14\node_modules\primeng\fesm2015\primeng-editor.mjs depends on 'quill'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configur ... pendencies

** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **

When I open the chrome browser to http://localhost:4200/, the site has no styles applied to it at all.

I should note that the site works on a mac running windows 10, but not on a PC running on Windows 10.

andy.coxe@gmail.com
Posts: 2
Joined: 13 Aug 2022, 20:29

22 Aug 2022, 16:02

The issue I faced was the compiled css files were ignored by .gitignore and there is nothing in the start script to compiles themes into css. So either comment out .gitignore entries that prevent compiled themes from being checked into git or add a script to the package.json start command to compile each theme. I chose to comment these lines in gitignore for now:

# Compiled files
# theme.css
# layout.css
# src/assets/layout/styles/theme/designer

seymagullu
Posts: 44
Joined: 17 Jun 2022, 09:43

23 Aug 2022, 12:58

Hi,

We use "quill": "^1.3.7". version.

Please after installing this version.

Code: Select all

npm install --legacy-peer-deps

Code: Select all

npm install --package-lock=false --legacy-peer-deps

Code: Select all

sass --watch src/assets:src/assets --no-source-map
Regards.

Post Reply

Return to “Apollo - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests