Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

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

Open
janlent1 opened this issue Apr 29, 2022 · 0 comments
Open

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

janlent1 opened this issue Apr 29, 2022 · 0 comments

Comments

@janlent1
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant