Comments (6)
是的
from umi-examples.
用 master 的 umi 和 [email protected] 都不能重现,删除 node_modules/umi-dlls 后重试看?
from umi-examples.
用啥安装依赖的?我看了下 react-intl 有个 prop-types 的 peerDependencies,估计项目里得安装个 prop-types 。
from umi-examples.
yarn 和npm 都有这个问题
from umi-examples.
因为react-intl的prop-types放在devDependencies中
所以,也要把react-intl放在devDependencies里面
"devDependencies": {
"babel-plugin-module-resolver": "^3.1.0",
"react-intl": "^2.4.0",
"umi-plugin-dll": "*"
}
需要在项目中安装umi 否则会提示错误
f:\umi-cli-test\umi-examples\func-test>umi dev
opts hihi
generate files in plugin1
generate files in plugin2
Failed to compile.
Cannot read property '0' of undefined
需要 把umi放在devDependencies中,否则会提示错误
f:\umi-cli-test\umi-examples\func-test>npm run start
> @ start f:\umi-cli-test\umi-examples\func-test
> umi dev
opts hihi
generate files in plugin1
generate files in plugin2
Build completed in 4.45s
Failed to compile.
dll umi
Module not found: Can't resolve 'umi' in 'f:\umi-cli-test\umi-examples\func-test'
感觉和 umijs/umi#493 这个是一个问题。
临时修改方案是:
npm i umi --D
修改package.json
{
"scripts": {
"start": "umi dev"
},
"dependencies": {
},
"devDependencies": {
"babel-plugin-module-resolver": "^3.1.0",
"react-intl": "^2.4.0",
"umi": "^1.3.4",
"umi-plugin-dll": "*"
}
}
使用npm start 启动
from umi-examples.
func-test 已删除。
from umi-examples.
Related Issues (20)
- 如何使用动画!
- 关于的umi_antd_pro的官方例子的咨询 HOT 1
- 是否可以添加个 umi2.0 的exam HOT 2
- 例子怎么启动? HOT 3
- mobx & mobx-state-tree HOT 4
- 运行ts 目录下的项目报错 componets/A找不到 HOT 1
- typescript example 运行 umi test 报错 HOT 4
- 如何在登陆页过后修改路由 HOT 1
- with-redux 运行报错 HOT 4
- 目前没有dispatch的类型声明文件吗? HOT 1
- 约定式路由如何指定动态路由的匹配模式
- Windows平台下运行报错
- Cannot destructure ROUTES_MODIFIER in runtime-routes-update
- 如何在 class Page extends React.Components { } 中获取传递的 ID 值? HOT 1
- 空值检查 HOT 4
- 使用umi提供的模板,怎么更新已渲染的元素 HOT 1
- typescript例子中 类型不对编译也通过 HOT 1
- with-dva windows 环境运行报错 HOT 1
- with-fusion-next 启动出错,scss处理出错 HOT 2
- 您好,可以出个umi3的版本吗,非常感谢!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from umi-examples.