Closed DKeken closed 1 month ago
Thank you, the issue was fixed in version 2.1.0 here
Be aware that importing in the .module.css
file might lead to unintended side effects due to Next.js's default configuration. Specifically, it automatically prefixes class names, which will disrupt library styles. To circumvent this, you might need to tweak your setup. If altering the basic configuration is not your preference, we advise importing styles within JavaScript, TypeScript, or plain CSS files instead.
Description
When working in development mode (dev mode) with a Next.js project version 14.1.4, a syntax error occurs related to importing styles from
@xelene/tgui/dist/styles.css
intoindex.module.css
. The error message indicates that the:root
selector is not pure, implying it lacks a local class or ID, which appears to be a requirement in this context.Steps to Reproduce
@xelene/tgui@2.0.6
as a dependency.@xelene/tgui/dist/styles.css
intoindex.module.css
.next dev
to operate in development mode.Expected Behavior
The project launches without any CSS-related syntax errors.
Actual Behavior
The launch process fails with the following syntax error:
Environment
@xelene/tgui
version: 2.0.6