-
-
Notifications
You must be signed in to change notification settings - Fork 433
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
[feature request] Enable typescript 3.8.3 support #1072
Comments
Is the problem presenting because your webpack config is TS and not JS? I suspect this would be fixed by publishing a new version of Can you do me a favour and compile the latest version of ts-loader and try it on your project. If that works then I'd feel justified publishing a new release. |
I think so, yes, since
Can confirm the issue is gone if I use compiled from the master branch ts-loader version. But if I then downgrade typescript 3.8.3 => 3.7.5 I get not the exact but similar to original error:
Errors diff (original and [email protected] + ts-loader from master branch): @@ -1,9 +1,9 @@
-ERROR in node_modules/ts-loader/dist/interfaces.d.ts:57:18 - error TS2320: Interface 'SolutionBuilderWithWatchHost' cannot simultaneously extend types 'SolutionBuilderWithWatchHost' and 'WatchFactory'.
-Named property 'watchDirectory' of types 'SolutionBuilderWithWatchHost' and 'WatchFactory' are not identical.
+ERROR in node_modules/ts-loader/dist/interfaces.d.ts:57:18 - error TS2320: Interface 'SolutionBuilderWithWatchHost' cannot simultaneously extend types 'SolutionBuilderWithWatchHost<EmitAndSemanticDiagnosticsBuilderProgram>' and 'WatchFactory'.
+ Named property 'watchDirectory' of types 'SolutionBuilderWithWatchHost<EmitAndSemanticDiagnosticsBuilderProgram>' and 'WatchFactory' are not identical.
57 export interface SolutionBuilderWithWatchHost extends typescript.SolutionBuilderWithWatchHost<typescript.EmitAndSemanticDiagnosticsBuilderProgram>, WatchFactory {
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-node_modules/ts-loader/dist/interfaces.d.ts:57:18 - error TS2320: Interface 'SolutionBuilderWithWatchHost' cannot simultaneously extend types 'SolutionBuilderWithWatchHost' and 'WatchFactory'.
-Named property 'watchFile' of types 'SolutionBuilderWithWatchHost' and 'WatchFactory' are not identical.
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+node_modules/ts-loader/dist/interfaces.d.ts:57:18 - error TS2320: Interface 'SolutionBuilderWithWatchHost' cannot simultaneously extend types 'SolutionBuilderWithWatchHost<EmitAndSemanticDiagnosticsBuilderProgram>' and 'WatchFactory'.
+ Named property 'watchFile' of types 'SolutionBuilderWithWatchHost<EmitAndSemanticDiagnosticsBuilderProgram>' and 'WatchFactory' are not identical.
57 export interface SolutionBuilderWithWatchHost extends typescript.SolutionBuilderWithWatchHost<typescript.EmitAndSemanticDiagnosticsBuilderProgram>, WatchFactory { So technically, in terms of TS typings, it looks like a breaking change comes in next release and then |
If you'd like to add one of those tests I'd be very grateful 😄 Yeah the issue will have been resolved by this change here: 87340f4#diff-a84f60e04d03dd963458bd8a12f9ac20R71 Technically this is a breaking change, but because it's a fairly niche use case I think I'm happy to just treat it as a bugfix. I've raised a release PR: #1073 I'll plan to ship it some time today unless you've any compelling reason not to? |
I'm not ready to do that at the moment 😄
I don't, would be happy to update to a new version. Closing the issue since version in master branch is working well and is about to be released. |
skipLibCheck
TS compilation flag (not for the entire code base but just for the code part that compiles/runs webpack using the config presented in TS code).ERROR in node_modules/ts-loader/dist/interfaces.d.ts:57:18 - error TS2320: Interface 'SolutionBuilderWithWatchHost' cannot simultaneously extend types 'SolutionBuilderWithWatchHost' and 'WatchFactory'.
Named property 'watchDirectory' of types 'SolutionBuilderWithWatchHost' and 'WatchFactory' are not identical.
57 export interface SolutionBuilderWithWatchHost extends typescript.SolutionBuilderWithWatchHost<typescript.EmitAndSemanticDiagnosticsBuilderProgram>, WatchFactory {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/ts-loader/dist/interfaces.d.ts:57:18 - error TS2320: Interface 'SolutionBuilderWithWatchHost' cannot simultaneously extend types 'SolutionBuilderWithWatchHost' and 'WatchFactory'.
Named property 'watchFile' of types 'SolutionBuilderWithWatchHost' and 'WatchFactory' are not identical.
57 export interface SolutionBuilderWithWatchHost extends typescript.SolutionBuilderWithWatchHost<typescript.EmitAndSemanticDiagnosticsBuilderProgram>, WatchFactory {
The text was updated successfully, but these errors were encountered: