Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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: } #614

Open
Cantaloupe313 opened this issue Jul 28, 2024 · 0 comments

Comments

@Cantaloupe313
Copy link

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

@Cantaloupe313 Cantaloupe313 changed the title 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: } 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: } Jul 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant