升级到OJet 5.0.0问题:找不到ojcorebundle.js [英] Upgrade to OJet 5.0.0 issue: ojcorebundle.js not found
问题描述
遵循从4.x.x到5.0.0的迁移路径后,我遇到了一个问题,当运行迁移应用程序(使用ojet serve)时,我在浏览器控制台中遇到一些与库有关的错误: -ojcorebundle.js -ojcommoncomponentsbundle.js -oj3rdpartybundle.js
After following the migration path from 4.x.x to 5.0.0, I've came to the issue that when runnig the migrate application (with ojet serve) I get some errors in the browser console, related to the libraries: - ojcorebundle.js - ojcommoncomponentsbundle.js - oj3rdpartybundle.js
检查网络,我发现找不到这些.我还检查了生成的libs文件夹和node_modules,@ oracle文件夹,没有运气.
Checking the network i see that those are not found. I've checked also the generated libs folder and the node_modules, @oracle folder and no luck.
推荐答案
似乎这些文件未包含在v5.0.0中.有一个解决方法.您可以将这些文件手动添加到关联的node_module文件夹中.但是您需要先获取这些文件:
It seems that those files are not included in v5.0.0. There's a workaround. You can add those files manually to the associated node_module folder. But you need to get those files first:
- 转到 JET食谱.
- 打开开发工具,然后打开网络"面板.
- 如果没有列出文件,请重新加载页面.
- 由于文件很多,请按"JS"进行过滤.
- 找到并下载上述三个文件.
- 将它们添加到\ node_modules \ @oracle \ oraclejet \ dist \ js \ libs \ oj \ debug
- 运行
$ ojet serve
- Go to JET Cookbook.
- Open dev tools, then the Network panel.
- Reload page if there are no files listed.
- Filter by "JS" since there are lots of files.
- Find and download the mentioned three files.
- Add them to \node_modules\@oracle\oraclejet\dist\js\libs\oj\debug
- Run
$ ojet serve
这篇关于升级到OJet 5.0.0问题:找不到ojcorebundle.js的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!