Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up[9.0.0-rc.4] angular/devkit: input.match is not a function (caused by raw-loader) #16315
Comments
This comment has been minimized.
This comment has been minimized.
Hi, this seems related to the fact that storybook doesn't use Storybook, uses parts of the Angular CLI webpack configurations to build an app: I suggest that an issue is filled with storybook and ngx-template-loader. |
This comment has been minimized.
This comment has been minimized.
Thanks for your answer, i will discuss it in the storybook repo. |
Command (mark with an
x
)Is this a regression?
Yes, the previous version in which this bug was not present was: 9.0.0-rc2Description
I've got this problem in storybook/angular (but it is not a storybook problem, because it uses @angular/devkit webpack configuration)styles configuration in rc2:
in rc4:
I have

"raw-loader": "0.5.1"
(which was used in rc2 because of not direct loader import), but in rc4 version of raw-loader forced to4.0.0
and it causes for me following problem - raw loader loadscomponent.less
files as es modules and not as strings (it was expected).This problem is similar to webpack-contrib/style-loader#123 when some guys needed to call
require(component.css).toString()
directly. But i think raw-loader should do it automatically instead of returning modules.Sorry, but there is no minimal reproduction.
Anything else relevant?