-
-
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
Cannot use ag-grid with ts-loader >= 0.9.3 #388
Comments
Since 0.9.3 is when we added support for |
Unfortunately, I can't do that, because my project is too big, and rely on this option for now. |
Do you want to try something for me? If you tweak this line: from: // if allowJs is set then we should accept js(x) files
const scriptRegex = configFile.config.compilerOptions.allowJs
? /\.tsx?$|\.jsx?$/i
: /\.tsx?$/i; to: const scriptRegex = /\.tsx?$/i; does it resolve your issue? |
Yes, it works fine with this change (using v1.2.2) |
OK. So that's a little frustrating. Essentially, when I'd possibly be open to supporting this behaviour in some way in ts-loader but there's a couple of things we'd need first:
Over to you! |
Here you go #397 |
I'm waiting for input from @pqr but it seems that the change introduced in 0.9.3 may have been problematic. The behaviour introduced there (details here #316 ) effectively caters for an edge case: when the entry point is a js file. Because this is an edge case and also because it seems to be causing problems for others I'm considering putting the new behaviour behind a flag. That will make it still available for @dschnare and others that rely on it. I want a little more data before I commit to this but I wanted to let you know what I was thinking. |
Should be resolved with 1.3.0 |
When using ag-grid and ts-loader >= 0.9.3 with allowJs set to true, I get lots of error like this :
It's fine with ts-loader 0.9.2
Maybe it's related to this issue: #250
Since ag-grid use the typings field as well https://github.com/ceolter/ag-grid/blob/master/package.json#L9
The text was updated successfully, but these errors were encountered: