failed to load config from D:\BaiduSyncdisk\vue3\sys-manager\vite.config.js
error when starting dev server:
Error: Dynamic require of "path" is not supported
原因在于vite中没有不支持require()
const path = require('path')
改成
import path from 'path'
- quot supported Dynamic require Errorquot supported dynamic require support dynamic vulkan loader modelspecification specification required error error distribution requirement mediapipe required mbedtls support note quot supported protocol disabled quot https supported protocol notimplementederror quot supported wikitext requirement satisfies versions error quot whitespace hbuilderx supported