Opened 9 years ago

Closed 9 years ago

#4828 closed defect (fixed)

New Activity for physicsJS has some initial setup errors.

Reported by: kabhi2104 Owned by: Abhishek
Priority: Urgent Milestone: Unspecified
Component: ActivityTeam Version: Unspecified
Severity: Major Keywords: Writing a sugar activity
Cc: @… Distribution/OS: Unspecified
Bug Status: Resolved

Description

Though i am able to write my own classes separately for physicsJS & i am not facing any problem as such but these errors look bad.
http://fpaste.org/191504/06259114/
http://imgur.com/y0bfl1F I will look into it if needed but will be good if someone can look into it so that i could save my time & move on(because its initial set up issue)


Change History (2)

comment:1 Changed 9 years ago by kabhi2104

  • Bug Status changed from New to Resolved

Solved
While creating the new activity these two files

<script src="lib/webL10n.js"></script>
<script type="text/javascript" src="lib/domReady.js"></script>

were loading inside <head> tag.So If you manually code a script tag in HTML to load a script with an anonymous define() call, this error can occur.
So make sure the only <script> tag (at least for any scripts which call define()) in your index.html is the one to requirejs.

Last edited 9 years ago by kabhi2104 (previous) (diff)

comment:2 Changed 9 years ago by kabhi2104

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.