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

Running "npm run dev" throws error from "sass-loader" #77

Closed
manzurahmed opened this issue Feb 21, 2021 · 3 comments
Closed

Running "npm run dev" throws error from "sass-loader" #77

manzurahmed opened this issue Feb 21, 2021 · 3 comments

Comments

@manzurahmed
Copy link

manzurahmed commented Feb 21, 2021

When I run "npm run dev" I get the error message:

Laravel Mix
Error: /opt/lampp/htdocs/wp_alecaddd_awps/wp-content/themes/awpstest/assets/src/sass/style.css
ModuleBuildError: Module build failed (from ./node/modules/sass-loader/dist/cjs.js): TypeError: this.getOptions is not a function at Object.loader (/opt/lampp/htdocs/wp_alecaddd_awps/wp-content/themes

As a result, I am getting the following error:

Notice: Undefined index: /css/style.css in /opt/lampp/htdocs/wp_alecaddd_awps/wp-content/themes/awpstest/inc/Helpers.php on line 80
Notice: Undefined index: /css/style.css in /opt/lampp/htdocs/wp_alecaddd_awps/wp-content/themes/awpstest/inc/Helpers.php on line 97

I would appreciate if you could guide me to get a work around?

@manzurahmed
Copy link
Author

manzurahmed commented Feb 21, 2021

I have downgraded sass-loader NPM package version to 10.1.1 and "npm run dev" is working quite well.

@Alecaddd
Copy link
Owner

Indeed, I have to upgrade all the packages and release a new version of AWPS.
I'll do that this weekend.

@Alecaddd
Copy link
Owner

I upgraded all the packages to a new version and updated Laravel Mix to use the new scripts.

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

2 participants