vite报 Dynamic require of “path“ is not supported 错误
作者:小教学发布时间:2023-09-25分类:程序开发学习浏览:153
导读:当引入path时报Dynamicrequireof“path”isnotsupported错误错误代码:解决:查看vite的版本如果是3.1.x不支持commo...
当引入path时报 Dynamic require of “path” is not supported 错误
错误代码:
解决:
查看 vite的版本如果是3.1.x不支持commonJS,所以要改为
import { } from ’ ’ 就可以了
- 程序开发学习排行
- 最近发表
-
- Minamaze GoDark | WordPress Theme 博客主题下载
- Blogup Diary | WordPress Theme 博客主题下载
- Fire Fighter | WordPress Theme 博客主题下载
- Bosa Construction Company | WordPress Theme 博客主题下载
- Business Networking Conference | WordPress Theme 博客主题下载
- Ecommerce Gadget Store | WordPress Theme 博客主题下载
- MagLink | WordPress Theme 博客主题下载
- The Food Reviewer | WordPress Theme 博客主题下载
- Core Store | WordPress Theme 博客主题下载
- Frutiger Aero | WordPress Theme 博客主题下载