JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

Error: Dynamic require of "path" is not supported

发布时间 2023-06-25 14:23:26作者: 城南城南

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'

    本栏目推荐文章
  • A connection was successfully established with the server but then an error
  • vscode错误:Unable to connect to VS Code server: Error in request.
  • 【解决方案】Error running,Command line is too long
  • Pycharm读excel文件报错xlrd.biffh.XLRDError: Excel xlsx file not supported
  • 【Leetcode1949. 坚定的友谊】使用MySQL在无向图中寻找{"CompleteTripartite", {1, 1, 3}}这个pattern
  • Python中出现"No module named 'requests'"的图文解决办法
  • fish和pacman:“error: Unable to read input file: 是一个目录”报错的处理
  • 在Windows上出现"localhost拒绝连接”的问题
  • ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password'
  • mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION; ERROR 1410 (42000): You are not allowed to create a user with GRANT
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们