根据邮件的说明,替换proto.min.js???

huioff 2023-5-31 572

编译报了错误:“'default' is not exported by src/wfc/ptt/internal/ptt.min.js, imported by src/wfc/ptt/client/pttClient.js”,这是啥意思?是没根据邮件的说明,替换proto.min.js?

最新回复 (5)
  • x86 2023-5-31
    引用 2
    请贴一下,完整的错误日志。
  • huioff 2023-6-1
    引用 3
    完整错误日志
    transforming (111) node_modules/base64-arraybuffer/dist/base64-arraybuffer.Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification
    ✓ 111 modules transformed.
    'default' is not exported by src/wfc/ptt/internal/ptt.min.js, imported by src/wfc/ptt/client/pttClient.js
    file: /Users/user/Documents/HBuilderProjects/appWEB/src/wfc/ptt/client/pttClient.js:3:7
    1: import {EventEmitter} from "events";
    2: import wfc from "../../client/wfc";
    3: import PttClientImpl from "../internal/ptt.min.js";
              ^
    4: import PttErrorCode from "./pttErrorCode";
    5: import ConversationType from "../../model/conversationType";
    error during build:
    Error: 'default' is not exported by src/wfc/ptt/internal/ptt.min.js, imported by src/wfc/ptt/client/pttClient.js
        at error (/Users/user/Documents/HBuilderProjects/appWEB/node_modules/rollup/dist/shared/rollup.js:151:30)
        at Module.error (/Users/user/Documents/HBuilderProjects/appWEB/node_modules/rollup/dist/shared/rollup.js:10059:16)
        at Module.traceVariable (/Users/user/Documents/HBuilderProjects/appWEB/node_modules/rollup/dist/shared/rollup.js:10444:29)
        at ModuleScope.findVariable (/Users/user/Documents/HBuilderProjects/appWEB/node_modules/rollup/dist/shared/rollup.js:9227:39)
        at ChildScope.findVariable (/Users/user/Documents/HBuilderProjects/appWEB/node_modules/rollup/dist/shared/rollup.js:3654:38)
        at ClassBodyScope.findVariable (/Users/user/Documents/HBuilderProjects/appWEB/node_modules/rollup/dist/shared/rollup.js:3654:38)
        at ChildScope.findVariable (/Users/user/Documents/HBuilderProjects/appWEB/node_modules/rollup/dist/shared/rollup.js:3654:38)
        at FunctionScope.findVariable (/Users/user/Documents/HBuilderProjects/appWEB/node_modules/rollup/dist/shared/rollup.js:3654:38)
        at ChildScope.findVariable (/Users/user/Documents/HBuilderProjects/appWEB/node_modules/rollup/dist/shared/rollup.js:3654:38)
        at Identifier.bind (/Users/user/Documents/HBuilderProjects/appWEB/node_modules/rollup/dist/shared/rollup.js:4591:40)
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! vue3_cli_default@0.0.0 build: `vite build`
    npm ERR! Exit status 1
    npm ERR! 
    npm ERR! Failed at the vue3_cli_default@0.0.0 build script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  • x86 2023-6-1
    引用 4
    临时可以这么处理:
    wfc.js里面,把 import pttClient from "../ptt/client/pttClient";
    注释了

    我们查下这可能是什么原因
  • huioff 2023-6-3
    引用 5
    根据邮件的说明,替换proto.min.js,web是专业版功能嘛?
  • HeavyRain 2023-6-3
    引用 6
    web依赖专业版IM服务,必须先部署IM服务,且IM服务中打开关于web的配置后,才可以使用web。详情请参考 https://docs.wildfirechat.cn/web/
返回