Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SassError: NoSuchMethodError #1768

Closed
ssinghal571 opened this issue Aug 1, 2022 · 2 comments
Closed

SassError: NoSuchMethodError #1768

ssinghal571 opened this issue Aug 1, 2022 · 2 comments

Comments

@ssinghal571
Copy link

I am getting the following error while using sass-loader:

Module build failed (from ../../node_modules/sass-loader/dist/cjs.js):
SassError: NoSuchMethodError: method not found: 'line' on null

WebpackConfigue:

module: {
rules: {
[ test: /.scss$/, exclude:/node_module/, use: ['style-loader', 'css-loader', 'sass-loader']
}
}

@nex3
Copy link
Contributor

nex3 commented Aug 2, 2022

Please file this issue against the webpack loader, or provide a reproduction that only uses the Dart Sass API.

@nex3 nex3 closed this as completed Aug 2, 2022
@loilo
Copy link

loilo commented Aug 28, 2022

For future visitors encountering this error: The reason for this problem is sass-loader trying to access SourceSpan properties that are absent in some situations, as described in #1790.

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

No branches or pull requests

3 participants