vite
- vite3
- import path from 'path'
- node 版本 14.17.x
- 出现错误
- node 升级到 16.18.0, 解决报错问题
- https://github.com/vitejs/vite/issues/9113
- Vite uses node: import which is supported in v16.0.0+ and v14.18.0+. v15 does not support this.
https://nodejs.org/api/esm.html#node-imports - 官网vite3 使用注意node版本 :https://cn.vitejs.dev/guide/migration.html