首页 > 其他分享 >ERROR Failed to compile with 1 error

ERROR Failed to compile with 1 error

时间:2024-06-01 20:31:57浏览次数:13  
标签:npm index run 文件 serve compile Failed webpack error

解决方法一:

重新运行:npm run serve(每个人情况不定)

解决方法二:

可能是文件中有中文名,将该项目文件名称及该项目文件的上一层命名为纯英文。

重新:npm run serve

解决方法三:

修改相关的 webpack 配置文件

把 index.html 文件重命名为 index.ejs 文件

在 node_nodules/webpack/bin/webpack.js 中加入 html: { template: './src/index.ejs' }

重新运行:npm run serve

标签:npm,index,run,文件,serve,compile,Failed,webpack,error
From: https://blog.csdn.net/m0_74613536/article/details/139244621

相关文章

  • python画图报错:OSError: 'seaborn-whitegrid' is not a valid package style
    解决方法:https://stackoverflow.com/questions/78019854/matplotlib-seaborn-whitegrid-is-not-a-valid-package-style?newreg=7ee17d6cd10c4182b08284391596644b代码:importmatplotlib.pyplotaspltplt.style.available效果:这个问题说明对应的样式package不存在,查......
  • error: no configuration has been provided, try setting KUBERNETES_MASTER environ
    1:问题kubernetes集群,一台master,一台node1,一台node2,重启电脑后,node1节点和node2节点报错如下error:noconfigurationhasbeenprovided,trysettingKUBERNETES_MASTERenvironmentvariable2:解决方法2.1:查看master节点进入到该目录下cd/etc/kubernetes把admi......
  • Alpine Linux apk add DNS lookup error
    起因最近做了需要做几个基础镜像,Dockerfile来自Github某仓库,镜像使用的是AlpineLinux3.18,且这个镜像已经更改过软件包管理器apk所使用的软件包仓库(记住这句话),后面基于这个镜像我还需要额外加了一些其他软件包,Dockerfile大致如下FROM某个第三方镜像:alpine-3.18..........
  • form.is_valid()一直为False,且form.errors.as_json()为空
    form.is_valid()一直为False且form.errors.as_json()为空。这种情况通常是由于提交的数据未能正确绑定到表单字段。为了排查这个问题,需要逐步检查以下几个方面:检查HTML表单:确保HTML表单的输入字段名称与LoginForm中的字段名称匹配。确保表单的method属性设置为POST,并且包含{......
  • centos 重启挂载错误 failed to mount /backup
    方法一重新挂载即可1、错误界面登录 2、查看错误日志journalctl-xb 3、查到是failedtomount/backup挂载错误,打开fstab文件vi/etc/fstab 4、退出重启,卸载后重新挂载,再次打开 vi/etc/fstab取消注销,重启即可umount/dev/sdb1/backupmount/dev/sdb1......
  • WSL error "it can't find the path specified"
    https://huaweicloud.csdn.net/6356079bd3efff3090b58e82.html用powershell输入以下命令检查是否有路径无效:·@($env:path-split";").ForEach({if($_){$result='MISSING|';if(Test-Path-path$_){$result='OK|'};-join($result,'......
  • 使用git报错:error: RPC failed; curl 18 transfer closed with outstanding read data
    今天在使用git下载项目时发生报错:error:RPCfailed;curl18transferclosedwithoutstandingreaddataremainingerror:4790bytesofbodyarestillexpectedfatal:earlyEOFfetch-pack:unexpecteddisconnectwhilereadingsidebandpacketfatal:fetch-pack:in......
  • Android Studio ERROR: Installed Build Tools revision 34.0.0 is corrupted. Remove
    AndroidStudio错误提示:ERROR:InstalledBuildToolsrevision34.0.0iscorrupted.RemoveandinstallagainusingtheSDKManager.解决办法:在C:\Users\Administrator\AppData\Local\Android\Sdk\build-tools\34.0.0目录中找到d8.bat,将文件名修改为dx.bat在C:\Us......
  • java.lang.UnsatisfiedLinkError: no taos in java.library.path, TDengine 访问数
     TDengine linux部署连接驱动问题: java.lang.UnsatisfiedLinkError:notaosinjava.library.path解决方案有有两种:方法一:使用原生的连接需要安装客户端,docker应用的话需要安装tdengine客户端到相应应用容器里面:windows端的需要安装tdengine客户端注意使用driver驱动......
  • ### Cause: java.sql.SQLSyntaxErrorException: Expression #4 of SELECT list is not
    最近把线上数据库备份到本地数据库进行一些代码修改时候,发现代码连接本地数据库报错,线上数据库是正常的,后来查阅了一下是SELECT列表不在GROUPBY语句内且存在不函数依赖GROUPBY语句的非聚合字段,算是比较严谨的sql模式,如果需要解决的话需要修改一下my.ini配置页面,我先去自己安装......