-
Notifications
You must be signed in to change notification settings - Fork 8
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
CRA依赖注入不生效? #242
Labels
Comments
@gitHber 你的 tsconfig 中 "emitDecoratorMetadata": true,
"experimentalDecorators": true, 两个选项开了吗 |
开了的 |
将你的 initDevtool 移到 ReactDOM.render 后执行 |
没有变化 |
CRA 默认不允许修改任何配置,你需要先使用 react-app-rewired 重写 CRA 的 babel config storybookjs/storybook#6479 (comment) 或者使用 customize-cra: rbuckton/reflect-metadata#104 (comment) |
Brooooooklyn
added
documentation
Improvements or additions to documentation
good first issue
Good for newcomers
help wanted
Extra attention is needed
and removed
good first issue
Good for newcomers
labels
May 27, 2020
你能给个例子吗?我都试过了,还是不生效,目前我只能手动注入 |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
create-react-app使用ts,依赖注入不生效,添加 babel-plugin-transform-typescript-metadata 也没用
App.js
a.service.ts
test.module.ts
babel.config.js
The text was updated successfully, but these errors were encountered: