Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

My bare bones HTML5 project
Started by martin39 Sep 07 2019 11:22 PM

- - - - -
3 replies to this topic

Best Answer martin39 , 09 September 2019 - 05:29 AM

What browser are you using?

Are you on Windows or a Mac?

What version of Corona are you using?

 

I ran your sample in Chrome using 2019.3519 and it worked as expected.

I'm sorry guy... was using "Brave" browser... Shortly after I posted this, I found that by turning off "shields" everything worked.

I wanted to delete my post, but it was held in some kind of queue, so I could not see it.

Perhaps if someone has exactly the same error, this can help them.

Also I found that "npm" server cannot work with the "blob" loads from x.bin and x.data stuff that the generated index.html needs to do... however 

python3 -m http.server

 works fine.

[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

martin39

[GLOBAL: userInfoPane.html]
martin39
  • Observer

  • 4 posts
  • Corona SDK

I have an app that I need to port, but I was having problems, so I tried to make a bare bones HTML5 project. I have attached it as a zip file. However even this bare bones project does not work for me. So I feel I must be doing something very basic wrong. But I just don't know what.

The project contains only a build.settings main.lua.

build.settings:

settings =
{
  orientation =
  {
    default = "portrait",
    supported = { "portrait", },
  },
}
main.lua:
display.newCircle(display.actualContentWidth*0.5,display.actualContentHeight*0.5,50)
This draws a white circle in the center of the screen. That is all.

I build HTML5 with both options unchecked (I also tried with Include Standard Resources check, makes no difference), the error I get is:

exception thrown: TypeError: cannot read property 'length' of null

Followed by several other errors. See attached.

I can see this is working for loads of other people, so what am I doing wrong? 

 

 

Attached Files



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,697 posts
  • Enterprise

What browser are you using?

Are you on Windows or a Mac?

What version of Corona are you using?

 

I ran your sample in Chrome using 2019.3519 and it worked as expected.



[TOPIC: post.html]
#3

martin39

[GLOBAL: userInfoPane.html]
martin39
  • Observer

  • 4 posts
  • Corona SDK

  Best Answer

What browser are you using?

Are you on Windows or a Mac?

What version of Corona are you using?

 

I ran your sample in Chrome using 2019.3519 and it worked as expected.

I'm sorry guy... was using "Brave" browser... Shortly after I posted this, I found that by turning off "shields" everything worked.

I wanted to delete my post, but it was held in some kind of queue, so I could not see it.

Perhaps if someone has exactly the same error, this can help them.

Also I found that "npm" server cannot work with the "blob" loads from x.bin and x.data stuff that the generated index.html needs to do... however 

python3 -m http.server

 works fine.



[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,697 posts
  • Enterprise

First time posters are held in a moderation queue as a spam preventer. We also don't like deleting posts because someone else can come behind you and learn from your post.

 

Rob




[topic_controls]
[/topic_controls]