Yesterday, when less replaced sass, it reported this error after installing node sass and sass loader
In short, there is a version conflict. The version of SASS loader is too high. I installed 11 and the last project was 10, so the solution is very simple
Solution:
1.npm uninstall sass-loader or yarn remove sass-loader
2.npm install [email protected] -D or yarn add [email protected] -D
PS: my node sass version is 5.0.0, both of which are in the package npm i xx -D , I came according to the last project. Different people have different opinions on the details. Just report no mistakes
Link to the original text: https://blog.csdn.net/qq_ 42430948/article/details/113552673
Read More:
- Syntax error: typeerror: this.getoptions is not a function an error is reported when the. SCSS file is imported globally
- TypeError: this.getOptions is not a function at Object.lessLoader
- Using webpack to report typeerror: this.getresolve is not a function
- Vue — report error with less module build failed: typeerror: loaderContext.getResolve is not a function
- Webpack error module build failed: typeerror: fileSystem.statSync is not a function
- TypeError: connection.connect is not a function
- Typeerror in gitbook init: cb.apply is not a function solution
- JS error – typeerror: XXX is not a function
- [Solved] Error handling response: TypeError: self.processResponse is not a function
- [Solved] jQuery Error: Uncaught TypeError: this.attr is not a function
- Uncaught (in promise) TypeError: Object(…) is not a function
- Typeerror occurred during gitbook installation: cb.apply is not a function
- Front end project runtime prompts syntax error: typeerror: token.type.endswith is not a function solution
- [react+antd] Table Error: Unhandled Rejection (TypeError): data.slice is not a function
- Common error: uncaught typeerror: document.getElementsByClassName (…).addEventListener is not a function
- Vue Error in v-on handler: “TypeError: path.indexOf is not a function“
- Vue error in mounted hook: “typeerror: object (…) is not a function“
- Python error prompt: typeerror: ‘builtin’_ function_ or_ method‘ object is not subscriptable
- About iView reporting error in Vue project: error in mounted hook: “typeerror: this$ parent.updateNav is not a function”
- Python TypeError: ‘newline’ is an invalid keyword argument for this function