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
I add the watch: "watch:style": "node-sass-chokidar --include-path ../../node_modules ./src -o ./build --watch --recursive --ext scss", when I change style.module.scss, it shows an erorr:
{
"status": 1,
"file": ".../name/packages/client/src/styles.module.scss",
"line": 1,
"column": 1,
"message": "File to import not found or unreadable: ~@name/theme/src/variables",
"formatted": "Error: File to import not found or unreadable: ~@name/theme/src/variables.\n ........"
}
remove the ~ will make the watch runs success but it makes the build failed because the import in style.module.scss does not find the @name/themes in current node_modules, it should find in the root node_modules by adding ~
The text was updated successfully, but these errors were encountered:
I have a
_variables.scss
inthemes
package.I import this file in the
client
package >style.module.scss
"watch:style": "node-sass-chokidar --include-path ../../node_modules ./src -o ./build --watch --recursive --ext scss",
when I changestyle.module.scss
, it shows an erorr:remove the
~
will make the watch runs success but it makes the build failed because the import instyle.module.scss
does not find the@name/themes
in currentnode_modules
, it should find in the rootnode_modules
by adding~
The text was updated successfully, but these errors were encountered: