1、项目构建 1.1、使用vite初始化项目 1.1.1、创建项目文件夹 mkdir my-vue3 1.1.2、进入项目文件夹 cd my-vue3 1.1.3、初始化项目 npm init vite@latest 1.1.4、输入项目名称 1.1.5、选择vue 1.1.6、选择TypeScript 1.1.7、查看当前源(非必要) npm config get registry 1.1.8、更换为国内镜像(非必要) npm config set registry=http://registry.npm.taobao.org/ 1.1.9、进入项目 cd vue3-ts-scss 1.1.10、安装依赖 npm install 1.1.11、运行项目 npm run dev 1.1.12、修改部分报错信息 找不到模块“@vitejs/plugin-vue”。你的意思是要将 “moduleResolution” 选项设置为 “node”,还是要将别名添加到 “paths” 选项中?
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with ElMessage
Contact ElMessage, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck RackActions
Is this you?
As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.Actions
Is this you?
As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.Get in touch with ElMessage
Contact ElMessage, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack