草庐IT

vite-plugin-cdn-import

全部标签

NestJs系列之使用Vite搭建项目

介绍在使用nest创建项目时,默认使用webpack进行打包,有时候启动项目需要1-2分钟。所以希望采用vite进行快速启动项目进行开发。本文主要使用NestJs、Vite和swc进行配置。文章实操较多,概念性的东西可访问对应的官方文档进行了解。tips:个人认为概念性的东西,在文章中指出。对熟悉的人来说直接就实操,节省时间。感兴趣的小伙伴探索性去了解,提升学习乐趣概念什么是NestJS?官方地址:NestJS-AprogressiveNode.jsframework中文地址:NestJS简介|NestJS中文文档|NestJS中文网(bootcss.com)个人理解:NodeJS的Sprin

X [ERROR] Two output files share the same path but have different contents: node_modules\.vite\deps_

X[ERROR]Twooutputfilessharethesamepathbuthavedifferentcontents:node_modules\.vite\deps_temp_cb676b7c\Vue.jsD:\front\_other\hole\node_modules\esbuild\lib\main.js:1636leterror=newError(`${text}${summary}`);^Error:Buildfailedwith1error:error:Twooutputfilessharethesamepathbuthavedifferentcontents:node_m

*from . import _imaging as core : ImportError: DLL load failed: 找不到指定的模块

错误提示如上。为了解决这个问题,首先参考了解决from.import_imag…模块。.首先尝试了彻底卸载pillow:condauninstallpillow;pipuninstallpillow然后重装pipinstallpillow,发现问题仍然没有解决。并且尝试了windows+pycharm导入opencv-python提示缺少dll推荐的DependencyWalker2.2工具。【可行的解决方案】用工具打开这个目录D:\ProgramD....\lib\site-packages\PIL\Image.py(在上面报错的位置),发现该文件有问题。于是进行以下操作:删除D:\Prog

Django:ImportError: cannot import name ‘url‘ from ‘django.conf.urls‘

Django运行项目时报错:ImportError:cannotimportname'url'from'django.conf.urls'我的Django项目导入的模块如下:fromdjango.conf.urlsimporturl解决方法这是因为django已经把django.conf.urls.url()废弃掉了。django.conf.urls.url()wasdeprecatedinDjango3.0,andisremovedinDjango4.0+.https://stackoverflow.com/questions/70319606/importerror-cannot-impo

安卓工作室 : Could not create plugin of type 'AppPlugin'

我知道有很多类似的问题,但没有一个答案适合我。AndroidStudio0.8.0dependencies{classpath'com.android.tools.build:gradle:0.12.+'(theminimumsupportedversion-fromtip)}Gradle1.4------------------------------------------------------------Groovy:1.8.6Ant:ApacheAnt(TM)version1.9.3compiledonApril82014Ivy:nonofficialversionJVM:1

win10 安装RabbitMQ时 执行:rabbitmq-plugins enable rabbitmq_management命令报 Plugin configuration unchanged

一、安装rabbitmq之前一定先安装好Eralng并配置好环境变更(这个自行去官方下载适合自己电脑的版本)二、安装前最好把360、腾讯等电脑管家软件暂时退出三、下载RabbitMQ先确认自己的安装的Eralng版本:RabbitMQErlangVersionRequirements—RabbitMQ下载对应的版本rabbitmq(不然出现在后的面错误按解决方法处理可能也无效)最新版本下载地址:InstallingonWindows—RabbitMQ安装RabbitMQ正常点下一步就行(也可以自定义选择,但如果要自定义安装路径的话,路径中最好不要存在中文,避免出错误都定位不到问题)基本问题解决

windows使用nslookup 检测网址是否使用cdn遇到的问题

在我查询检测网址是否cdn时,看到通过nslookup可以检测,于是我win+r输入nslookupwww.baidu.com但是出现以下问题如图:  正常情况:  于是我上网搜索,但几乎没有关于物理机的解决方案,我看了下也没有开vpn,又用流量开热点,电脑还是不行换了www.bilibili.com和www.163.com等其他网址都不行,之后又看了下我的网络适配器设置,把ipv6协议取消电脑重启发现还是不行。既然如此我只能把一个一个虚拟端口关闭然后一次次实验。最后还是不行发现是版本漏洞原因。 

Plugin ‘org.apache.maven.plugins_maven-compiler-plugin_‘ not found

Plugin‘org.apache.maven.plugins:maven-compiler-plugin:‘notfoundHowoldareyou?怎么老是你!!!吾日三省吾身今天学习了没有?答曰:自然,可途中偏偏遇到拦路虎,苦老夫久矣。今日必定将这坑踩个透彻,踏个通透Maven编译报错在使用maven的方式创建SpringBoot项目的时候,编译的时候报错Plugin‘org.apache.maven.plugins:maven-compiler-plugin:‘notfound真的是非常影响正常的学习进度,一怒之下,将该问题研究通透并记录报错原因以及解决办法报错的原因非常直白,就是这个

Vite启动后提示“Network: use `--host` to expose“,且无法通过网络IP访问服务

起因: 当使用Vite构建项目后,需要通过局域网中的电脑或手机访问服务调试时,发现通过IP+端口无法访问。简单来说就是方便自己手机本地访问而查看的Network地址vite-vue@0.0.0serve/Users/UserName/Workspace/vue-vite>vite|vitepreviewvitev2.3.7buildpreviewserverrunningat:>Local:http://localhost:3000|5000/>Network:use`--host`toexpose问题原因当 局域网 中另一台设备需要访问该服务时,必须通过本机 IP+端口 访问。尝试访问后,发

报错qt.qpa.plugin: Could not load the Qt platform plugin “xcb“ in ““ even though it was found.This ap

报错qt.qpa.plugin:CouldnotloadtheQtplatformplugin"xcb"in""eventhoughitwasfound.ThisapplicationfailedtostartbecausenoQtplatformplugincouldbeinitialized.Reinstallingtheapplicationmayfixthisproblem.Availableplatformpluginsare:minimalegl,vkkhrdisplay,linuxfb,eglfs,vnc,offscreen,xcb,wayland-egl,minimal,way