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
From the discussion in #4903 it was decided to disallow global imports in @next, instead requiring the "~" symbol to explicitly import a module.
This is not suitable for my use case, as the library itself uses global imports to import it's own dependencies - I have no control over going in and adding "~" to every import the library uses.
The breaking issue here is that in @next it is no longer possible to use the method of loading SASS from react-scripts 1.x, as installing node-sass will trigger the sass-loader and cause a build error:
.Failed to compile.
/src/index.scss)
Module build failed:
@import "core-ui/tile";
^
File to import not found or unreadable: core-ui/tile.
Is there any way of disabling the sass-loader in @next in order to revert the previous method?
The text was updated successfully, but these errors were encountered:
The breaking issue here is that in @next it is no longer possible to use the method of loading SASS from react-scripts 1.x
Hmm, why would that be the case? I imagine that you can keep using the watch mode in 2.x, and import css files (not scss), like you did before. Can you provide a reproducing example?
What is this core-ui package? I don't see any title export.
Also, that error is stemming from your code (src/index.scss), so why can't the import be updated?
I'm using a SASS component library that relies heavily on global imports, e.g:
@import "core-ui/tile";
To achieve this in react-scripts 1.x, it was a requirement to pass node_modules to the include-path:
From the discussion in #4903 it was decided to disallow global imports in @next, instead requiring the "~" symbol to explicitly import a module.
This is not suitable for my use case, as the library itself uses global imports to import it's own dependencies - I have no control over going in and adding "~" to every import the library uses.
The breaking issue here is that in @next it is no longer possible to use the method of loading SASS from react-scripts 1.x, as installing node-sass will trigger the sass-loader and cause a build error:
Is there any way of disabling the sass-loader in @next in order to revert the previous method?
The text was updated successfully, but these errors were encountered: