#Website displays as black page on iOS devices

1 messages · Page 1 of 1 (latest)

misty creek
#

Hello, when I try to build for my FTP manually, my build fail with somes error from Three, you can see on picture.

lethal hull
#

Can you check if your tsconfig has skipLibCheck set to true?

misty creek
#

I need to change this ?

lethal hull
#

true is correct

misty creek
white ferry
#

Would be great if you could try to hold ALT and click on "Install" in the ExportInfo component
(that clears some caches and reinstalls)

misty creek
white ferry
#

Shouldn't take so long, depending on your scene.
We log all ongoing things into the console, are there errors visible there?

misty creek
white ferry
#

Yeah that should be fine. Just to make sure, can you simply restart Unity and try again? I'm pretty sure there's just something stuck

misty creek
misty creek
#

Hello @white ferry & @lethal hull

#

I think its doesnt work lol

lethal hull
#

What happens if you make a development build?

misty creek
#

Already try its seems

white ferry
lethal hull
#

you can do it like this:

misty creek
#

i dont know if its what you want

lethal hull
#

Sorry for some reason the editor logs were not included (maybe an issue on OSX). Can you send the file manually?

misty creek
#

Okay wait, I'm on osx yes, with M1

lethal hull
#

The Unity logs look fine, checking the npm logs now

misty creek
#

How can I have access to npm logs from unity ?

lethal hull
#

They're sent with the bugreport zip or you can open them via this menu item

misty creek
#

I dont understand because if I kill my build, is successful, but if I take my dist folder for make it in my ftp it not the good version of my project

lethal hull
#

but i dont see any interesting log... they're all just 1kb and contain info that the command was started and finished and nothing more

misty creek
lethal hull
#

Ah react problems?!

misty creek
#

I dont use react

#

why have react in my project

lethal hull
#

It is not installed in the project. Ah the log you sent is from november 2022 😄 this one #1080428073289257010 message

misty creek
#

oh ok -_- lol

#

I think it could be interesting

#

is the lasts logs from yesterday

lethal hull
#

mh ok it contains peer dependency errors with Found: @needle-tools/engine@undefined 🤔 mmmh

#

can you try opening the web project directory in the terminal and then run npm run build:dev manually from there and see if it contains the same errors?

misty creek
#

yes im trying

lethal hull
#

Can you try running install (npm install) and then build again?

misty creek
#

yes

#

npm error is... so cute ❤️

lethal hull
#

Ok same as in the log. What happens if you do run npm install --force ?

lethal hull
#

Very strange.
Is that project on git by any chance?

I'm assuming it would work if you remove the npmdef dependency in Unity and then install+build again?

misty creek
#

is in needle ?

#

I have 1 dependencie

lethal hull
#

Ah i thought you added that -can you check the export info and make a screenshot for me?

misty creek
#

named "test"

lethal hull
#

It's an npmdef file, looks like this I assume? Did you create it?

misty creek
#

nope

#

I supposed i can delete this dependance ?

lethal hull
#

Yes. How did you create the project?

#

does the file exist?

#

in Unity

misty creek
#

I dont know i have started this in september or october 😦

#

I think I have try the exemple

#

and I have edited and code over that

#

sorry for my english...

lethal hull
#

Ah ok I see

misty creek
#

Ok its better, but not working

#

npm install have worked, after I have test npm run build:dev

#

This is the result of run build

misty creek
#

@lethal hull i've deleted node_modules folder

#

and package lock

#

and clear cache

#

and reinstall all modules, but same error

#

or if @white ferry you have any idea

lethal hull
#

Is the project on github or somewhere you could give us access to?

misty creek
#

but i dont know how send you all project

misty creek
#

i upload zip of all unity project

lethal hull
#

You dont need to send the library folder of your unity project

misty creek
#

just my collaborativesandbox ?

lethal hull
#

The unity project (without library) and the web project.

misty creek
#

@lethal hull ?

lethal hull
misty creek
#

yes

#

give me your mail i need mail reciever

lethal hull
misty creek
#

ty

lethal hull
#

thanks

lethal hull
#

Got your project running now

#

The only change i made was adding "skipLibCheck": true to the tsconfig. Then it built successfully

#

Are you using npm? which version of npm / node are you using?

misty creek
lethal hull
#

Could you try downgrading to node 18 LTS?

misty creek
#

Oh i have add "skipLibCheck": true in my tsconfig and my dist folder it be filled

#

Its work !!

#

not on phone but its work

lethal hull
#

is your phone an ios device?

#

What happens on the phone?

misty creek
misty creek
lethal hull
#

Can you share the link with me?

misty creek
#

yep

misty creek
misty creek
misty creek
#

News : i have check console log (we can make that with iPhone and mac) and the console is same on iPhone..

misty creek
#

Anyone ?

white ferry
#

To summarize:

  • building works for you now
  • you get a blank page on iOS on the URL you shared above?
#

Browsers are moving more and more away from http (without the s) support, so that's always good to check if it works on HTTPS

misty creek
#

It’s exactly that, yes I am on https but that works on pc I think is not the problem

white ferry
#

It might honestly be as easy as your SSL certificate being invalid - some browsers will display a warning and let you continue while others will not allow that.

#

This might also be a problem: you're trying to request pointer lock before any user gesture has happened, which may simply lock up the browser depending on their implementation (you're not even catching the exception)

#

Lots of errors related to incorrect handling of pointer locking