-
Notifications
You must be signed in to change notification settings - Fork 175
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
V14.5.x Import Typescript file from a jar module #10937
Comments
I haven't tested it with Vaadin 19, but it is already added there in that version:
so I guess it would work with Vaadin 19 |
Hi @jcgueriaud1 , thanks for submitting the issue. As far as I have seen this was solved at In fact, it has worked for me with the provided project. I was only able to reproduce the issue when manually removing the file from So, the issue seems to be related to the maven plugin. I will qualify the issue so it can be addressed. |
When you let it compile and run by IDE, the It doesn't work only if the resource is inside the jar file - e.g. during mvn clean install - in that case it calls the
in the else branch and ignores all *.ts files. |
TypeScript pattern has been added to Flow private static final String[] WILDCARD_INCLUSIONS = new String[] {
"**/*.js", "**/*.css", "**/*.ts" }; It shouldn't be an issue in Flow |
I bumped the Vaadin version to 14.7.1. The ts file is copied in the folder: But I have a webpack error, the tsconfig.json is not generated. And I have this error:
I pushed my latest changes here: https://github.com/jcgueriaud1/multimodule-spring-vaadin-app/tree/v14_5/ts_in_module It could be related to this issue (if the typescript files are compiled by the add-on, there is no need of a tsconfig in the main module then "no issue"): #11976 |
@jcgueriaud1 those webpack issues you experienced are most likely has a different root cause, so I propose to open an another issue and put there your latest observations. |
I re-opened the ticket because the project I linked was not working after the fix. I've created a new ticket with the same code. |
In a multimodule application, I have javascript files in a jar module that can be used.
If I add typescript file in a jar module, I have this error:
It's ignored in this class
TaskCopyFrontendFiles
:Is it an intended behavior?
In this branch you can build and see the error: https://github.com/jcgueriaud1/multimodule-spring-vaadin-app/tree/v14_5/ts_in_module
Both files (js and ts) are in the same directory but only the javascript file is taken:
https://github.com/jcgueriaud1/multimodule-spring-vaadin-app/tree/v14_5/ts_in_module/ui-module/src/main/resources/META-INF/resources/frontend
The text was updated successfully, but these errors were encountered: