-
-
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
ts-loader can't load Typescript with any version > 5.0.4 #1635
Comments
I've been banging my head against the wall - thanks for reporting this! I'm having the same issue. Downgrading to |
Any fix here for typescript >5.0.4. I'm getting below error for the typescript 5.2.2
|
It looks like you're using an old version of ts-loader; 8.4. Also it looks like your code may have an issue?
|
This happens here when "esm" is used, which is incompatible with Typescript's use of the |
This is the webpack config file I am using :
Expected Behaviour
Running
webpack --config ./webpack.config.js
with any Typescript version > 5.0.4 should passActual Behaviour
This is what I get when I try running webpack with any Typescript version > 5.0.4 :
Error: Could not load TypeScript. Try installing with
yarn add typescript
ornpm install typescript
. If TypeScript is installed globally, try usingyarn link typescript
ornpm link typescript
.However, this works with any version <= 5.0.4, so, I am not sure what would be the workaround for this.
The text was updated successfully, but these errors were encountered: