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

(memoize.Cache || MapCache) is not a constructor 找不到项目配置文件config/index #16088

Open
1160916065aabbc opened this issue Jul 11, 2024 · 0 comments
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@1160916065aabbc
Copy link

相关平台

微信小程序

小程序基础库: 3.3.4
使用框架: React

复现步骤

dev启动报错 yarn run v1.22.19
$ npm run build:h5 -- --watch

myApp@1.0.0 build:h5
taro build --type h5 --watch

👽 Taro v3.6.33

TypeError: (memoize.Cache || MapCache) is not a constructor
at memoize (F:\N\QL\1\myApp\node_modules\lodash\memoize.js:66:20)
at memoizeCapped (F:\N\QL\1\myApp\node_modules\lodash_memoizeCapped.js:15:16)
at Object. (F:\N\QL\1\myApp\node_modules\lodash_stringToPath.js:16:20)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Object.newLoader [as .js] (F:\N\QL\1\myApp\node_modules\pirates\lib\index.js:121:7)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Function.Module._load (node:internal/modules/cjs/loader:958:12)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18)
找不到项目配置文件config/index,请确定当前目录是 Taro 项目根目录!
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

期望结果

正常编译

实际结果

TypeError: (memoize.Cache || MapCache) is not a constructor
at memoize (F:\N\QL\1\myApp\node_modules\lodash\memoize.js:66:20)
at memoizeCapped (F:\N\QL\1\myApp\node_modules\lodash_memoizeCapped.js:15:16)
at Object. (F:\N\QL\1\myApp\node_modules\lodash_stringToPath.js:16:20)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Object.newLoader [as .js] (F:\N\QL\1\myApp\node_modules\pirates\lib\index.js:121:7)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Function.Module._load (node:internal/modules/cjs/loader:958:12)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18)
找不到项目配置文件config/index,请确定当前目录是 Taro 项目根目录!
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

环境信息

👽 Taro v3.6.0


  Taro CLI 3.6.0 environment info:
    System:
      OS: Linux 6.1 Manjaro Linux undefined
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 16.19.0 - ~/.nvm/versions/node/v16.19.0/bin/node
      Yarn: 1.22.19 - /usr/bin/yarn
      npm: 8.19.3 - ~/.nvm/versions/node/v16.19.0/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.0 => 3.6.0 
      @tarojs/components: 3.6.0 => 3.6.0 
      @tarojs/helper: 3.6.0 => 3.6.0 
      @tarojs/plugin-framework-react: 3.6.0 => 3.6.0 
      @tarojs/plugin-platform-alipay: 3.6.0 => 3.6.0 
      @tarojs/plugin-platform-h5: 3.6.0 => 3.6.0 
      @tarojs/plugin-platform-jd: 3.6.0 => 3.6.0 
      @tarojs/plugin-platform-qq: 3.6.0 => 3.6.0 
      @tarojs/plugin-platform-swan: 3.6.0 => 3.6.0 
      @tarojs/plugin-platform-tt: 3.6.0 => 3.6.0 
      @tarojs/plugin-platform-weapp: 3.6.0 => 3.6.0 
      @tarojs/react: 3.6.0 => 3.6.0 
      @tarojs/runtime: 3.6.0 => 3.6.0 
      @tarojs/shared: 3.6.0 => 3.6.0 
      @tarojs/taro: 3.6.0 => 3.6.0 
      @tarojs/webpack5-runner: 3.6.0 => 3.6.0 
      babel-preset-taro: 3.6.0 => 3.6.0 
      eslint-config-taro: 3.6.0 => 3.6.0 
      react: ^18.0.0 => 18.2.0 

补充信息

版本是3.6.33 通过npx @tarojs/cli init myApp 命令行创建的Taro 在启动 dev:weapp 时报错

报错为:

👽 Taro v3.6.33

TypeError: (memoize.Cache || MapCache) is not a constructor
at memoize (F:\N\QL\1\myApp\node_modules\lodash\memoize.js:66:20)
at memoizeCapped (F:\N\QL\1\myApp\node_modules\lodash_memoizeCapped.js:15:16)
at Object. (F:\N\QL\1\myApp\node_modules\lodash_stringToPath.js:16:20)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Object.newLoader [as .js] (F:\N\QL\1\myApp\node_modules\pirates\lib\index.js:121:7)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Function.Module._load (node:internal/modules/cjs/loader:958:12)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18)
找不到项目配置文件config/index,请确定当前目录是 Taro 项目根目录!

@TheKonka TheKonka added V-3 Version - 3.x F-react Framework - React T-weapp Target - 编译到微信小程序 labels Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
Status: Todo
Development

No branches or pull requests

2 participants