You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order for @tailwindcss/container-queries to work, adding a transformer for Razor is required since the @'s used by the plugin have to be escaped (with @@) in Razor. The configuration then looks like this:
However, this causes the extension to fail to load with the following trace:
TypeError: content.replace is not a function
at cshtml (C:\...\tailwind.config.cjs:6:40)
at Object.<anonymous> (c:\...\appdata\local\microsoft\visualstudio\17.0_ad8f40b8\extensions\5ixbhpjg.ksm\Resources\parser.js:364:58)
at JSON.stringify (<anonymous>)
at c:\...\appdata\local\microsoft\visualstudio\17.0_ad8f40b8\extensions\5ixbhpjg.ksm\Resources\parser.js:167:27
at c:\...\appdata\local\microsoft\visualstudio\17.0_ad8f40b8\extensions\5ixbhpjg.ksm\Resources\parser.js:372:7
at Object.<anonymous> (c:\...\appdata\local\microsoft\visualstudio\17.0_ad8f40b8\extensions\5ixbhpjg.ksm\Resources\parser.js:373:3)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
Node.js v20.11.1
at TailwindCSSIntellisense.Configuration.ConfigFileParser.<GetConfigJsonNodeAsync>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at TailwindCSSIntellisense.Configuration.ConfigFileParser.<GetConfigurationAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at TailwindCSSIntellisense.Configuration.CompletionConfiguration.<ReloadCustomAttributesAsync>d__47.MoveNext()
The text was updated successfully, but these errors were encountered:
In order for
@tailwindcss/container-queries
to work, adding a transformer for Razor is required since the @'s used by the plugin have to be escaped (with@@
) in Razor. The configuration then looks like this:However, this causes the extension to fail to load with the following trace:
The text was updated successfully, but these errors were encountered: