Skip to content

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

Description

@Cantaloupe313

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions