taro icon indicating copy to clipboard operation
taro copied to clipboard

Taro3.5.11 webpack 5 ModuleDependencyWarning

Open ParkerTzh opened this issue 2 years ago • 5 comments

相关平台

微信小程序

小程序基础库: 2.30.0 使用框架: Nerv

复现步骤

NODE_ENV=production taro build --type weapp --watch

期望结果

禁用此类警告

实际结果

at HarmonyImportSpecifierDependency.getLinkingErrors (/Users/zhihuitang/apps/newsVersion/book_keeper_applet/node_modules/webpack/lib/dependencies/HarmonyImportDependency.js:160:8) ModuleDependencyWarning: export 'useDidShow' (imported as 'useDidShow') was not found in '@tarojs/runtime' (possible exports: Current, Events, FormElement, MutationObserver, SVGElement, Style, TaroElement, TaroEvent, TaroNode, TaroRootElement, TaroText, addLeadingSlash, cancelAnimationFrame, createComponentConfig, createEvent, createPageConfig, createRecursiveComponentConfig, document, eventCenter, eventHandler, eventSource, getComputedStyle, getCurrentInstance, getPageInstance, hooks, hydrate, incrementId, injectPageInstance, navigator, nextTick, now, options, removePageInstance, requestAnimationFrame, safeExecute, stringify, window)

环境信息

Taro CLI 3.5.11 environment info:
    System:
      OS: macOS 13.2
      Shell: 5.8.1 - /bin/zsh
    Binaries:
      Node: 14.18.0 - ~/.nvm/versions/node/v14.18.0/bin/node
      Yarn: 1.22.19 - /usr/local/bin/yarn
      npm: 6.14.15 - ~/.nvm/versions/node/v14.18.0/bin/npm
    npmPackages:
      @tarojs/cli: 3.5.11 => 3.5.11
      @tarojs/components: 3.5.11 => 3.5.11
      @tarojs/helper: 3.5.11 => 3.5.11
      @tarojs/plugin-framework-react: 3.5.11 => 3.5.11
      @tarojs/plugin-html: ^3.6.0 => 3.6.0
      @tarojs/plugin-platform-alipay: 3.5.11 => 3.5.11
      @tarojs/plugin-platform-jd: 3.5.11 => 3.5.11
      @tarojs/plugin-platform-qq: 3.5.11 => 3.5.11
      @tarojs/plugin-platform-swan: 3.5.11 => 3.5.11
      @tarojs/plugin-platform-tt: 3.5.11 => 3.5.11
      @tarojs/plugin-platform-weapp: 3.5.11 => 3.5.11
      @tarojs/react: 3.5.11 => 3.5.11
      @tarojs/router: 3.5.11 => 3.5.11
      @tarojs/runtime: 3.5.11 => 3.5.11
      @tarojs/shared: 3.5.11 => 3.5.11
      @tarojs/taro: 3.5.11 => 3.5.11
      @tarojs/taro-h5: 3.5.11 => 3.5.11
      @tarojs/webpack5-runner: 3.5.11 => 3.5.11
      babel-preset-taro: 3.5.11 => 3.5.11
      eslint-config-taro: 3.5.11 => 3.5.11
      react: ^18.0.0 => 18.2.0
      taro-ui: 3.0.0-alpha.3 => 3.0.0-alpha.3

ParkerTzh avatar Feb 05 '23 16:02 ParkerTzh

虚幻之物对应着冥冥之路!:《羽》

vini123 avatar Feb 05 '23 16:02 vini123

同问,怎么解决,问题是真多

SpringHgui avatar Apr 21 '23 08:04 SpringHgui

同问怎么解决

Pursue-LLL avatar May 22 '23 06:05 Pursue-LLL

同问

Promisezhangbo avatar Dec 23 '23 11:12 Promisezhangbo

同问

spencer17x avatar Apr 03 '24 08:04 spencer17x