swc-project / swc-loader

Moved to https://github.com/swc-project/pkgs
MIT License
394 stars 29 forks source link

Style-loader cannot be resolved when switching babel with swc #47

Open janlent1 opened 2 years ago

janlent1 commented 2 years ago

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