vite报 Dynamic require of “path“ is not supported 错误
作者:小教学发布时间:2023-09-25分类:程序开发学习浏览:59
导读:当引入path时报Dynamicrequireof“path”isnotsupported错误错误代码:解决:查看vite的版本如果是3.1.x不支持commo...
当引入path时报 Dynamic require of “path” is not supported 错误
错误代码:
解决:
查看 vite的版本如果是3.1.x不支持commonJS,所以要改为
import { } from ’ ’ 就可以了
- 程序开发学习排行
- 最近发表
-
- Dropchat最好的wordpress常用插件下载博客插件模块
- 由SPUR最好的WordPress常用插件下载博客插件模块提供的单片眼镜
- ALGO站点加载器最好的WordPress常用插件下载博客插件模块
- Marin WordPress主题博客主题下载
- 旅游度假WordPress主题博客主题下载
- Kenta Writer Hub WordPress主题博客主题下载
- WII DLC+WiiWare+VC全集目录!下载索引
- WII中文游戏全集目录!下载索引
- Healthy Fitness健身房WordPress主题博客主题下载
- Classic Industry WordPress主题博客主题下载