Giter Site home page Giter Site logo

Comments (12)

songxuyao avatar songxuyao commented on June 10, 2024 3

@qld-cf @nyanboard 搞定了
把 umi 升级一下
"umi": "^3.2.17"
我用的是这个版本, 其他版本没测试

from electron-react-tpl.

qld-cf avatar qld-cf commented on June 10, 2024

@nyanboard 并没有引用相关plugin 无法复现

  1. 请确认是否是在这个electron-react-tpl项目下npm start
  2. 还有问题的话发一下demo 仓库地址

from electron-react-tpl.

nyanboard avatar nyanboard commented on June 10, 2024

github 地址https://github.com/nyanboard/ddd
我其实就是拉取了你代码,然后npm install >>> npm run start出错了

from electron-react-tpl.

qld-cf avatar qld-cf commented on June 10, 2024

@nyanboard umi自己抽风问题

npm i 安装依赖匹配不到对应版本plugin-dva,估计最新版本没发布到生产环境..

先使用yarn安装依赖,
`
Couldn't find any versions for "@umijs/plugin-dva" that matches "0.8.1"
? Please choose a version of "@umijs/plugin-dva" from this list: (Use arrow keys)
❯ 0.1.0

`
选择一个0.6.0来完成安装吧

from electron-react-tpl.

qld-cf avatar qld-cf commented on June 10, 2024

umijs/plugin-dva 13分钟前又发了一版

from electron-react-tpl.

qld-cf avatar qld-cf commented on June 10, 2024

umijs/plugins@19fa0c9

from electron-react-tpl.

nyanboard avatar nyanboard commented on June 10, 2024

你的意思是yarn add @umijs/plugin-dva 但是我还是不行啊 0.8.2 和 0.6.0都试过了

from electron-react-tpl.

qld-cf avatar qld-cf commented on June 10, 2024

@nyanboard 删除node_module重新yarn,安装过程中提示选择@umijs/plugin-dva版本,随便选一个就行了

from electron-react-tpl.

nyanboard avatar nyanboard commented on June 10, 2024

为什么我没有提示????

from electron-react-tpl.

qld-cf avatar qld-cf commented on June 10, 2024

@nyanboard 不清楚了...

from electron-react-tpl.

songxuyao avatar songxuyao commented on June 10, 2024

我也遇到一样的问题
`yarn install v1.22.5
warning package.json: No license field
info No lockfile found.
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to
mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
warning [email protected]: No license field
[1/4] Resolving packages...
warning umi > @umijs/core > @hapi/[email protected]: joi is leaving the @Hapi organization and moving back to 'joi' (hapijs/joi#2411)
warning umi > @umijs/preset-built-in > @hapi/[email protected]: joi is leaving the @Hapi organization and moving back to 'joi' (hapijs/joi#2411)
warning umi > @umijs/core > @hapi/joi > @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
warning umi > @umijs/core > @hapi/joi > @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
warning umi > @umijs/core > @hapi/joi > @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
warning umi > @umijs/core > @hapi/joi > @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
warning umi > @umijs/core > @hapi/joi > @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
warning umi > @umijs/core > @hapi/joi > @hapi/topo > @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
warning umi > @umijs/preset-built-in > @umijs/bundler-webpack > less > [email protected]: request has been deprecated, see request/request#3142
warning umi > @umijs/preset-built-in > @umijs/bundler-webpack > less > request > [email protected]: this library is no longer supported
warning umi > @umijs/preset-built-in > @umijs/bundler-webpack > webpack > watchpack > watchpack-chokidar2 > [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning umi > @umijs/preset-built-in > @umijs/bundler-webpack > webpack > watchpack > watchpack-chokidar2 > chokidar > [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
warning umi > @umijs/preset-built-in > fork-ts-checker-webpack-plugin > micromatch > snapdragon > source-map-resolve > [email protected]: Please see https://github.com/lydell/urix#deprecated
warning umi > @umijs/preset-built-in > fork-ts-checker-webpack-plugin > micromatch > snapdragon > source-map-resolve > [email protected]: https://github.com/lydell/resolve-url#deprecated
warning @umijs/fabric > stylelint-config-rational-order > stylelint > postcss-markdown > remark > unified > @types/vfile >
@types/[email protected]: This is a stub types definition. vfile-message provides its own type definitions, so you do not need this installed.
warning @umijs/preset-react > @umijs/plugin-antd > antd-mobile > babel-runtime > [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
warning @umijs/preset-react > @umijs/plugin-locale > react-intl > @formatjs/[email protected]: We have renamed the package to @formatjs/intl-numberformat
warning @umijs/preset-react > @umijs/plugin-locale > react-intl > intl-messageformat-parser > @formatjs/[email protected]: We have renamed the package to @formatjs/intl-numberformat
warning @umijs/preset-react > @umijs/plugin-locale > react-intl > [email protected]: bad publish
warning @umijs/preset-react > @umijs/plugin-test > @umijs/test > jest-environment-jsdom-fourteen > jsdom > [email protected]:
request has been deprecated, see request/request#3142
warning @umijs/preset-react > @umijs/plugin-antd > antd-mobile > rmc-list-view > fbjs > [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
warning @umijs/preset-react > @umijs/plugin-test > @umijs/test > jest-environment-jsdom-fourteen > @jest/environment > @jest/transform > jest-haste-map > [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
warning @umijs/preset-react > @umijs/plugin-test > @umijs/test > jest-environment-jsdom-fourteen > jsdom > [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see request/request#3142
warning @umijs/preset-react > @umijs/plugin-test > @umijs/test > jest-cli > jest-config > jest-environment-jsdom > jsdom >
[email protected]: request has been deprecated, see request/request#3142
warning @umijs/preset-react > @umijs/plugin-test > @umijs/test > jest-cli > jest-config > jest-environment-jsdom > jsdom >
[email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see request/request#3142
warning wait-on > @hapi/[email protected]: joi is leaving the @Hapi organization and moving back to 'joi' (hapijs/joi#2411)
warning wait-on > [email protected]: request has been deprecated, see request/request#3142
warning wait-on > [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see request/request#3142
warning wait-on > @hapi/joi > @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
[2/4] Fetching packages...
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > @typescript-eslint/[email protected]" has unmet peer dependency "eslint@^5.0.0 || ^6.0.0".
warning "@typescript-eslint/eslint-plugin > [email protected]" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
warning "@typescript-eslint/eslint-plugin > @typescript-eslint/[email protected]" has unmet peer dependency "eslint@*".
warning " > @typescript-eslint/[email protected]" has unmet peer dependency "eslint@^5.0.0 || ^6.0.0".
warning "@umijs/fabric > @typescript-eslint/[email protected]" has incorrect peer dependency "@typescript-eslint/parser@^3.0.0".
warning " > [email protected]" has unmet peer dependency "eslint@^3 || ^4 || ^5 || ^6 || ^7".
warning "@umijs/preset-react > @umijs/[email protected]" has unmet peer dependency "@ant-design/pro-layout@^5.0.0".
warning "@umijs/preset-react > @umijs/plugin-dva > [email protected]" has unmet peer dependency "[email protected]".
warning "@umijs/preset-react > @umijs/plugin-dva > dva > [email protected]" has unmet peer dependency "react-router@^4.3.1 || ^5.0.0".
warning "@umijs/preset-react > @umijs/plugin-dva > [email protected]" has unmet peer dependency "dva-core@^1.1.0 | ^1.5.0-0 | ^1.6.0-0".
[4/4] Building fresh packages...
success Saved lockfile.
Done in 182.93s.
PS D:\Code\nodejs\electron-react-tpl-master> npm start

[email protected] start D:\Code\nodejs\electron-react-tpl-master
npm run electron:build && npm run dev

[email protected] electron:build D:\Code\nodejs\electron-react-tpl-master
cross-env node src/main/script/build

[src/main/script/build.js] Electron webpack 开始构建
[src/main/script/build.js] Electron webpack 构建完成

[email protected] dev D:\Code\nodejs\electron-react-tpl-master
concurrently -n=umi,electron -c=blue,green -p=[{name}] "cross-env APP_ROOT=src/render umi dev" "wait-on http://localhost:9090 && electron ."

[umi] api.addDepInfo is not a function
[umi] TypeError: api.addDepInfo is not a function
[umi] at _default (D:\Code\nodejs\electron-react-tpl-master\node_modules@umijs\plugin-antd\lib\index.js:84:7)
[umi] at Service.initPlugin (D:\Code\nodejs\electron-react-tpl-master\node_modules@umijs\core\lib\Service\Service.js:405:12)
[umi] at Service.initPresetsAndPlugins (D:\Code\nodejs\electron-react-tpl-master\node_modules@umijs\core\lib\Service\Service.js:313:12)
[umi] at D:\Code\nodejs\electron-react-tpl-master\node_modules@umijs\core\lib\Service\Service.js:227:13
[umi] at Generator.next ()
[umi] at asyncGeneratorStep (D:\Code\nodejs\electron-react-tpl-master\node_modules@umijs\core\lib\Service\Service.js:106:103)
[umi] at _next (D:\Code\nodejs\electron-react-tpl-master\node_modules@umijs\core\lib\Service\Service.js:108:194)
[umi] at D:\Code\nodejs\electron-react-tpl-master\node_modules@umijs\core\lib\Service\Service.js:108:364
[umi] at new Promise ()
[umi] at D:\Code\nodejs\electron-react-tpl-master\node_modules@umijs\core\lib\Service\Service.js:108:97
[umi] cross-env APP_ROOT=src/render umi dev exited with code 0
`

我是win10

from electron-react-tpl.

qld-cf avatar qld-cf commented on June 10, 2024

^3.2.17

Thanks♪(・ω・)ノ 我更新下pkg吧,umi有时候是真的坑比

from electron-react-tpl.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.