question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JsModule Annotation is not resolved if refering to a file inside a dependency

See original GitHub issue

Description of the bug

When using Vaadin 15, the defined resouces using the @JsModule Annotation cannot be resolved at runtime, if the resource is inside an addon dependency.

I have some users having issues when using some of my addons in combination with Vaadin 15.

While everything worked under Vaadin 14 it seems no longer to work under Vaadin 15.

One user hits this issue on Tomcat, another on Spring-boot.

Minimal reproducible example with Spring Boot

Example project

Versions

Vaadin 15

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:47 (22 by maintainers)

github_iconTop GitHub Comments

2reactions
haijian-vaadincommented, Apr 20, 2020

Hi @appreciated @mvdberge @hfffranzin The fix is now in 15.0.5, you can give it a try and let us know if it works for you.

1reaction
syampillaicommented, Mar 12, 2020

I reported a similar issue (#6069) for Vaadin 14 and it was resolved. However, with Vaadin 15, the same code is not working.

Read more comments on GitHub >

github_iconTop Results From Across the Web

java - @Value annotation not resolved in a class that belongs ...
I have a simple web-app that includes a dependency jar for some functionality and needs to use a property value defined in main...
Read more >
Storing and Loading Resources | Importing JavaScript and ...
The loading order of imported dependencies is only guaranteed for one file type, in one class. Specifically, loading order is not guaranteed ...
Read more >
Allure Framework
Allure Framework is a flexible lightweight multi-language test report tool that not only shows a very concise representation of what have ...
Read more >
Vaadin 14 - Troubleshooting - Martin Vysny
Sometimes Vaadin 14 fails mysteriously, which is very unfortunate: it now uses LOTS of JavaScript code, frameworks and tools.
Read more >
non-js module files deprecate - You.com | The search engine you ...
If I don't add import './display.js', I get this error: Jest failed to parse a file. This happens e.g. when your code or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found