Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS isolation does not work #355

Open
masq6r opened this issue May 11, 2024 · 1 comment
Open

CSS isolation does not work #355

masq6r opened this issue May 11, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@masq6r
Copy link

masq6r commented May 11, 2024

I followed the document and created a Bolero app but I could not make CSS isolation work because the CssScopes module is not generated.

To reproduce the issue:

  1. Create the project with dotnet new bolera-app.
  2. Check the existence of link { attr.rel "stylesheet"; attr.href "HelloWorld.Client.styles.css" } in Index.fs of HelloWorld.Server.
  3. Check the existence of MyApp.bolero.css of HelloWorld.Client.
  4. Comment the line override _.CssScope = CssScopes.MyApp in Main.fs of HelloWorld.Client, and build the whole solution in VS2022 GUI.
  5. Once the build completed, uncomment the line above and the compiler will give the FS0039 error, CssScopes is not defined.

My dotnet --version is 8.0.204 on Windows 10, Bolero, Bolero.Build, Bolero.Server are 0.23.52.

@Tarmil Tarmil added the bug Something isn't working label May 22, 2024
@Tarmil
Copy link
Member

Tarmil commented May 22, 2024

This is strange. I am failing to reproduce the issue (I'm on dotnet 8.0.300).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants