You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Failed to compile
./node_modules/@node-rs/jieba-win32-x64-msvc/jieba.win32-x64-msvc.node
Module parse failed: Unexpected character '�' (1:2)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
(Source code omitted for this binary file)
大概是与nextjs13的webpack打包后node文件地址错误导致的.
如果不使用
node-load
, 会报如下错误如果使用
native-ext-loader
去加载node文件, 并改写了地址. 开发运行模式npm run dev
会报错误. #628 . 且打包生产环境后, 依然有__dirname
导致的找不到node
文件的错误.能否将不同平台的
node
文件都整合到一个包中, 改写一下引用规则. 或者有更好的办法.:-c 求助大佬
The text was updated successfully, but these errors were encountered: