Upgrade to OJet 5.0.0 issue: ojcorebundle.js not found

夙愿已清 提交于 2019-12-06 12:15:54

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:

  1. Go to JET Cookbook.
  2. Open dev tools, then the Network panel.
  3. Reload page if there are no files listed.
  4. Filter by "JS" since there are lots of files.
  5. Find and download the mentioned three files.
  6. Add them to \node_modules\@oracle\oraclejet\dist\js\libs\oj\debug
  7. Run $ ojet serve

This appears to be an issue with the migration process Ciprian. The code should not be trying to load those bundle libraries when it's pulling from local files. If you open the path_mapping.json file, you can change the "use" parameter to the value of "cdn" instead of the default of "local". Rerun the ojet build/serve commands and things should work properly.

I'm looking into why the bundles are being referenced in local mode right now and hope to have a fix for that shortly.

Sorry for the troubles.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!