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

Resulting CSS file only contains comments from @use dependencies #72

Open
webgurumike opened this issue Feb 23, 2023 · 1 comment
Open

Comments

@webgurumike
Copy link

Installed product versions

  • Visual Studio: 2022 Professional
  • This extension: 1.14.10

Description

When I compile, there are no errors, but the resulting CSS file only contains comments from @use dependencies and no CSS. Any idea why?

Steps to recreate

  1. Create new .Net 7 web application project
  2. Install Tyler Forge from https://github.com/tyler-technologies-oss/forge using Package Package Manager console
  3. The @tylertech modules will be added to "node_modules" directory outside of the project root.
  4. Create app.scss file as starting point. Right-click > Web Compiler > Compile file.
  5. Open generated compilerconfig.json, add the following options: "options": { "loadPaths": "../node_modules" }.
  6. Within app.scss, add @use statements to import required Tyler Forge modules
@use '@tylertech/forge/styles/theme' as forge-theme;
@use '@tylertech/forge/styles/typography' as forge-typography;
  1. Save the file. It should compile without error and generate the compiled output file.
  2. Open the output file to see results.

Current behavior

Currently, the output file contains only the copyright comments from the theme, typography modules, and their dependencies. The rest is blank.

Expected behavior

It is expected that the theme and typography module CSS would be contained in the output CSS file OR an error would be thrown to indicate a problem occurred.

@failwyn
Copy link
Owner

failwyn commented Feb 23, 2023

Would you be able to zip the project and upload it here so that I can debug it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants