blucesun 解决npm报错:Module build failed: TypeError: this.getResolve is not a function

1、sass-loader的版本过高导致的编译错误,当前最高版本是8.x,需要退回到7.3.1

  运行:

    npm uninstall sass-loader(卸载当前版本)

    npm install sass[email protected]7.3.1 --save-dev

2、如果上面的方法不行,或者又产生其他相关的错误,可以尝试一下在webpack.base.config.js里面添加:

原文地址:https://www.cnblogs.com/jasonLiu2018/p/11996968.html

时间: 2024-08-30 05:03:23

blucesun 解决npm报错:Module build failed: TypeError: this.getResolve is not a function的相关文章

vue.js报错:Module build failed: Error: No parser and no file path given, couldn't infer a parser.

ERROR Failed to compile with 2 errors 12:00:33 error in ./src/App.vue Module build failed: Error: No parser and no file path given, couldn't infer a parser. at normalize (C:\Users\admin\Desktop\222\demo\node_modules\prettier\index.js:7051:13) at form

配置webpack loader vue 报错:Module build failed: TypeError: this._init is not a function

单文件组件 引入时报错 配置webpage.config.js中的vue 需要如下写法 { test: /\.vue/, loader: "vue-loader", } 之前写的loader 是vue, 并没有加 -loader所以报错

jeakins配置邮件通知,附带解决535报错:authentication failed

535报错解决方案:调用163邮箱服务器来发送邮件,我们需要开启POP3/SMTP服务,这时163邮件会让我们设置客户端授权码,这个授权码替代上面代码部分的passwd即可成功发送邮件 如果设置的邮箱是qq邮箱也可以通过此办法解决 邮件通知标题:构建通知:${BUILD_STATUS} - ${PROJECT_NAME} - Build # ${BUILD_NUMBER} ! 邮件通知正文: <!DOCTYPE html><html><head><meta cha

webpack报错:Module build failed (from ./node_modules/babel-loader/lib/index.js): Error: Cannot find module &#39;babel-preset-env&#39; from &#39;...&#39; - Did you mean &quot;@babel/env&quot;?

webpack报错:Module build failed (from ./node_modules/babel-loader/lib/index.js): Error: Cannot find module 'babel-preset-env' from '...' - Did you mean "@babel/env"? 原因: babel-core和babel-preset-env依赖被替换为@babel/core和@babel/preset-env,因为新版本的Babel7中对

【Vue报错】Module build failed: Error: No parser and no file path given, couldn&#39;t infer a p arser.

在创建一个vue项目启动时报错,报错的内容为: error in ./src/App.vue Module build failed: Error: No parser and no file path given, couldn't infer a p arser. at UndefinedParserError.Wrapper (D:\dyyc\bookstore\[email protected] [email protected]\index.js:1948:14) at new Und

Module build failed: Error: Cannot find module &#39;node-sass’解决

在 npm run dev 时出现 ” Module build failed: Error: Cannot find module 'node-sass’ “ 这样的错误,如下: ERROR Failed to compile with 1 errors 19:51:09 error in ./src/page/Class/ClassList.vue Module build failed: Error: Cannot find module 'node-sass' Require stack

安卓中运行报错Error:Execution failed for task &#39;:app:transformClassesWithDexForDebug&#39;解决

安卓中运行报错Error:Execution failed for task ':app:transformClassesWithDexForDebug'解决 安卓中运行报错Error:Execution failed for task ':app:transformClassesWithDexForDebug'解决

Xamarin 示例Standard Controls报错:xamarin Failed to compile interface file. See Build Output for details

Standard Controls 示例下载地址: http://developer.xamarin.com/content/StandardControls/ Xamarin官网上的IOS示例“Standard Controls”编译报错: xamarin  Failed to compile interface file. See Build Output for details 搜索Xamarind 的forums,有几个帖子是关于相同错误信息的,貌似最权威的解答是下面这个: http:/

VS Code报错Module &#39;xx&#39; has no &#39;xx&#39; member pylint(no-member)解决办法

pylint是vscode的python语法检查器,pylint是静态检查,在用第三方库的时候有些成员只有在运行代码的时候才会被建立,它就找不到成员,在设置(settings.json)里添加 "python.linting.pylintArgs": ["--generate-members"]来避免报错 VS Code报错Module 'xx' has no 'xx' member pylint(no-member)解决办法 原文地址:https://www.cn