swc-loader icon indicating copy to clipboard operation
swc-loader copied to clipboard

Style-loader cannot be resolved when switching babel with swc

Open janlent1 opened this issue 3 years ago • 0 comments

Im using an inline style-loader call in a js file const lessVar = require(`!!style-loader?{"esModule":false}!css-loader?{"esModule":false,"modules":"icss"}!less-loader!link.to.lessFile.less`); and this error is thrown: Module not found: Error: Can't resolve 'style-loader' in 'link/to/relative/file' The webpack config for resolving loaders is set correctly so this seems to be a swc-loader issue

janlent1 avatar Apr 29 '22 11:04 janlent1