-
-
Notifications
You must be signed in to change notification settings - Fork 243
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
Stuck when using a type alias for the module typesafe-actions #228
Comments
Given it gets stuck with Can you repro this with just fork-ts-checker-webpack-plugin? Slightly out of date but here's a simple example to start you off: https://github.com/TypeStrong/ts-loader/tree/master/examples/fork-ts-checker-webpack-plugin |
No, I can't. I pushed a branch to my repo: fork-ts-checker-webpack-plugin and it still gets stuck, but that must be for another reason because I can't get the simplest of hello worlds running. If I apply this diff: diff --git a/src/index.tsx b/src/index.tsx
index c24e9d8..add4adf 100755
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -1,5 +1,4 @@
import React from "react";
import ReactDOM from "react-dom";
-import App from "./App";
-ReactDOM.render(<App />, document.getElementById("root"));
+ReactDOM.render(<div>Hello world!</div>, document.getElementById("root")); The server still gets stuck on |
Any new insights on this? I recently upgraded packages and now experiencing this same "Files successfully emitted, waiting for typecheck results..." message and horridly long build times that tax the proc. The problem occurs with TypeScript 3.4.1 and rolling back to TypeScript 3.3.3333 resolves the issue. It may be related to the new incremental build option..?? |
This issue appears narrow in on the root cause, a conflict between Typescript 3.4.1 and [email protected]: |
This issue was just resolved and should be closed. See: microsoft/TypeScript#30663 |
I originally opened this issue in facebook/create-react-app#6467, but upon further investigation I assume that this issue is related to
fork-ts-checker-webpack-plugin
.So if you may allow me, I'm gonna go ahead and copy and paste the content of the issue:
Environment
Steps to Reproduce
This issue is related to creating a type alias and using it.
When I develop with
redux
andtypesafe-actions
, I spotted a common pattern:So I decided to abstract it to:
For some reason this does not work. The dev server gets stuck on
Files successfully emitted, waiting for typecheck results...
forever. However, if we inlineDispatcher
it does work as expected.There is no Typescript error, the server is just stuck. I have set up a demo repo; in order to reproduce the bug just do:
$ git clone https://github.com/MeLlamoPablo/dev-server-bug-test-repo $ cd dev-server-bug-test-repo $ yarn $ yarn start
As the repo's
README.md
says, you can find the working version in theworking
branch.I noticed that
react-scripts
doesn't usefork-ts-checker-webpack-plugin
, butreact-dev-utils/ForkTsCheckerWebpackPlugin
. In order to be able to switch the checker plugin, we can just runyarn eject
and we'll find the webpack config files inconfig/webpack.config.js
.Thank you so much for your help!
The text was updated successfully, but these errors were encountered: