问题标签 [wro4j]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
java - 我可以仅对 wro4j 中的 TS 文件启用打字稿处理吗?
我有一个带有旧 JS 代码的旧版应用程序,但我想将 TypeScript 用于一些较新的组件。是否可以告诉 wro4j仅在“*.ts”文件上应用rhinoTypeScript预处理器?
javascript - Integrating React app into a Wicket/wro4j app
Given:
- Simple reactjs-app with 3 components, based on
<div id="reactRoot"></div>
and adding a global js-function:
- Gradle tasks to run
npm run-script build
and copy resources into jar-file - Generate a
wro.xml
file like:
- Include the group into head rendering:
- add the
<div id="reactRoot"></div>
tag into the html-page.
Result:
When I open the page, I can see the <script type="text/javascript" src="/somapp/wro/@appVersion@/layer-selection.js"></script>
in the page's source code, and that file includes 3 js files from abovementioned wro.xml:
The problem is, that no React component is rendered, the function showLayerSelection
is not defined and I'm getting
Minified React error #200; visit https://reactjs.org/docs/error-decoder.html?invariant=200
that corresponds to
Target container is not a DOM element.
Any ideas on how to make it run? Can the problem be in wro4j packaging?
TIA
cloud - Sap Hybris - Wro4J 无法在云中加载资源 - 404 错误
在云中启用“storefront.wro4j.enabled”后,我将面临 404 错误。在我的本地,所有文件都生成并且工作正常。我无法在云中找到问题。
java - 升级依赖项后的 Java 版本错误
我正在尝试将我的 wro4j 依赖项从 1.7.x 升级到最新的(1.10.1)。
我的项目使用 Java 8。
我没有在任何地方(文档或其他)看到 wro4j 需要特定的 java 版本才能运行,但是,当我更改 pom.xml 中的版本并尝试编译我的项目时,我收到以下错误:
目标执行默认失败:由于 API 不兼容,无法在插件
ro.isdc.wro4j:wro4j-maven-plugin:1.10.1:run
中加载 mojo ::已由更新版本的 Java Runtime(类文件版本 53.0)编译,此版本的 Java Runtime 仅识别类文件高达 52.0 的版本'run'
'ro.isdc.wro4j:wro4j-maven-plugin:1.10.1'
org.codehaus.plexus.component.repository.exception.ComponentLookupException
ro/isdc/wro/maven/plugin/Wro4jMojo
这是否意味着如果不先升级 Java 就无法升级到 1.10.1,还是有其他解决方案?