Electron+vite使用抛出错误✓ 259 modules transformed. [commonjs--resolver] node_modules/node-easy-cert/node_modules/node-forge/js/forge.js (55:11): 'delete' cannot be called on an identifier in strict mode file: E:/gitlab/Cesium-Examples/roibest-preview-tools/node_modules/anyproxy/lib/webInterface.js:55:11 53: deps = (typeof ids === 'string') ? factory.slice(2) : ids.slice(2); 54: if(nodeJS) { 55: delete define; ^ 56: return tmpDefine.apply(null, Array.prototype.slice.call(arguments, 0)); 57: }
Author: Cantaloupe313Created Jul 28, 2024Updated Jul 28, 2024
Plese fill the template when you reporting a new issue, thanks!
Which platform are you running AnyProxy
windows
The version of the AnyProxy
4.1.3
Your expected behavior of AnyProxy
Electron+vite可以正常使用
The actual behavior of AnyProxy
报错✓ 259 modules transformed. [commonjs--resolver] node_modules/node-easy-cert/node_modules/node-forge/js/forge.js (55:11): 'delete' cannot be called on an identifier in strict mode file: E:/gitlab/Cesium-Examples/roibest-preview-tools/node_modules/anyproxy/lib/webInterface.js:55:11
53: deps = (typeof ids === 'string') ? factory.slice(2) : ids.slice(2); 54: if(nodeJS) { 55: delete define; ^ 56: return tmpDefine.apply(null, Array.prototype.slice.call(arguments, 0)); 57: }
The log of the error
Source: alibaba/anyproxy