收藏
回答

使用微信小程序开发工具建立ts项目,无法构建npm,怎么处理?

{
  "description""项目配置文件",
  "packOptions": {
    "ignore": []
  },
  "miniprogramRoot""./miniprogram",
  "compileType""miniprogram",
  "libVersion""2.20.1",
  "projectname""test1111111111",
  "scripts": {
    "beforeCompile""npm run tsc",
    "beforePreview""npm run tsc",
    "beforeUpload""npm run tsc"
  },
  "setting": {
    "urlCheck"true,
    "es6"true,
    "enhance"true,
    "postcss"true,
    "preloadBackgroundData"false,
    "minified"true,
    "newFeature"false,
    "coverView"true,
    "nodeModules"false,
    "autoAudits"false,
    "showShadowRootInWxmlPanel"true,
    "scopeDataCheck"false,
    "uglifyFileName"false,
    "checkInvalidKey"true,
    "checkSiteMap"true,
    "uploadWithSourceMap"true,
    "compileHotReLoad"false,
    "lazyloadPlaceholderEnable"false,
    "useMultiFrameRuntime"true,
    "useApiHook"true,
    "useApiHostProcess"true,
    "babelSetting": {
      "ignore": [],
      "disablePlugins": [],
      "outputPath"""
    },
    "enableEngineNative"false,
    "useIsolateContext"true,
    "userConfirmedBundleSwitch"false,
    "packNpmManually"true,
    "packNpmRelationList": [
      {
        "packageJsonPath""./package.json",
        "miniprogramNpmDistDir""./"
      }
    ],
    "minifyWXSS"true,
    "showES6CompileOption"false
  },
  "simulatorType""wechat",
  "simulatorPluginLibVersion": {},
  "appid""wxbb56567d7e8d45b0",
  "condition": {}
}

点击工具 npm构建 显示构建成功,但是miniprogram_npm目录没生成

工具版本1.05.2204250 11.05.2204250.05.2204250

回答关注问题邀请回答
收藏

1 个回答

  • commy
    commy
    2022-05-10

    请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

    2022-05-10
    有用
    回复
登录 后发表内容