Skip to content

当导入(import)文件时,reload发生错误 #1

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

Open
shenzekun opened this issue Jun 3, 2018 · 0 comments
Open

当导入(import)文件时,reload发生错误 #1

shenzekun opened this issue Jun 3, 2018 · 0 comments

Comments

@shenzekun
Copy link
Owner

shenzekun commented Jun 3, 2018

解决方法
在tsconfig.json 中,添加:

"include": [
    "src/**/*"
  ]

并且(得先 yarn run eject
image

即可

参考 wmonk/create-react-app-typescript#245

@shenzekun shenzekun changed the title 当导入(import)文件时,发生错误 当导入(import)文件时,reload发生错误 Jun 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant