vue2 升级vue3报错问题整理
vue3
Updated: 2025-08-19vue2 升级 vue3 报错问题整理 🔗
vite 路径别名 🔗
|
|
Catch all routes (“*”) must now be defined using a param with a custom regexp. 🔗
|
|
Module “path” has been externalized for browser compatibility. Cannot access “path.resolve” in client code. 🔗
安装
npm install path-browserify
使用
path-browserify
代替 path 模块不再使用
import path from 'path'
,改为import path from 'path-browserify'