Forum Stats

  • 3,875,405 Users
  • 2,266,911 Discussions
  • 7,912,196 Comments

Discussions

ojet build --release issue

User_P8BY0
User_P8BY0 Member Posts: 33 Green Ribbon

getting this issue, after doing ojet build --release

tested using ojet serve -- release

getting above error, please suggest.

Answers

  • What version of JET are you working with?

    This looks like you may have the script module hardcoded to main.js in your index.html file, and we change that name to bundle.js when using --release. In the more recent versions of the JET Starter templates, injector tags are using in the index.html to update the requirejs main module name at build time.

      <!-- This injects script tags for the main javascript files -->
      <!-- injector:scripts -->
      <!-- endinjector -->
    
  • User_P8BY0
    User_P8BY0 Member Posts: 33 Green Ribbon

    Ojet 9.2 migrated to Ojet 11