Replies: 1 comment
-
反馈错地方了,这里是electron-vite,推荐你使用electron-vite,相关方案https://electron-vite.org/guide/assets#importing-native-node-modules |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
umijs项目转vite的时候遇到的问题
项目中引入了腾讯语音包trtc-electron-sdk
这个包中引入了原生node模块
const NodeTRTCEngine = require('../build/Release/trtc_electron_sdk.node')
使用vite打包构建的时候报错,No loader is configured for ".node" files
之前使用umijs的时候是使用native-ext-loader插件处理的
想问下大家有没有遇到类似的问题或者有没有好的解决方案
环境
"vite": "^4.1.4"
"vite-electron-plugin": "^0.8.2"
Beta Was this translation helpful? Give feedback.
All reactions