-
Notifications
You must be signed in to change notification settings - Fork 302
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
不支持typescript 没有@types吗? #120
Comments
嗯,没有加 .d.ts 文件,暂不支持 TypeScript |
还有一个问题。 "@babel/core": "^7.0.0", {
test: /\.(js|jsx|ts|tsx)$/,
use: 'babel-loader'
}, .babelrc {
"presets": [
"@babel/preset-react",
[
"@babel/preset-env",
{
"modules": false,
"targets": {
"browsers": ["last 5 versions"]
},
"useBuiltIns": "usage"
}
],
"@babel/preset-typescript"
],
"plugins": [
[
"@babel/transform-runtime",
{
"helpers": false,
"regenerator": true
}
]
]
} 奇怪的是,我把button.js从node_modules文件放到src目录下,则不会报错, render() {
123456
} 因为用了babel7 目前找不到问题出在哪,感觉是babel7的问题 |
因为看源码,rctui的按需加载是直接引用Button的,放到src目录下跟node_modules下是一样的。 |
No description provided.
The text was updated successfully, but these errors were encountered: