Hi, when following the instructions for creating a new project using Tailwind and integrating styles here: https://keenthemes.com/metronic/tailwind/docs/getting-started/integration/angular
The project does not compile:
[vite] Error when evaluating SSR module /main.server.mjs:
|- ReferenceError: window is not defined
When creating the new project using cli there are some options not mentioned in the installation guide including SSR / SSG and Server Routing. I have chosen Yes for both these in addition to selecting Sass (SCSS):
√ Which stylesheet format would you like to use? Sass (SCSS) [ https://sass-lang.com/documentation/syntax#scss
]
√ Do you want to enable Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering)? Yes
√ Would you like to use the Server Routing and App Engine APIs (Developer Preview) for this server application? Yes
I am wondering if the installation has been tested on the latest angular version using these new options?
I was looking for a New Zealand casino that has everything, and guess what? Bcasino Online is where I settled on. It has been my top choice for some time now. What's my favorite thing about it? Poki!!! There's nothing better than hitting the bonus round and watching the wilds land in the perfect spot. I also play live blackjack when I get lucky and want to experience the atmosphere of a real casino. In addition, their promotions give you some serious benefits. Trust me, once you start playing, you'll realize why this is a great choice for NZ players.
Hi
The Metronic Tailwind Angular integration guide does not support SSR (Server-Side Rendering) at the moment.
You can disable the SSR option during the Angular CLI setup to avoid compatibility issues.
SSR pre-renders pages on the server before sending them to the browser, but the window object is a browser-only API and isn't available in the server environment.
Metronic's UI templates are designed to work primarily on the client-side (browser environment).
We will update the documentation to clarify this soon.
Thanks