Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Softkeys doesn't work #7

Open
DinoMah opened this issue Dec 15, 2020 · 3 comments
Open

Softkeys doesn't work #7

DinoMah opened this issue Dec 15, 2020 · 3 comments

Comments

@DinoMah
Copy link

DinoMah commented Dec 15, 2020

Doing this project manually I found that softkeys and D-Pad doesn't respond to the actions on a physical device.

@DinoMah
Copy link
Author

DinoMah commented Dec 16, 2020

I discovered something. Removing the type="module" from the import line
<script type="module" src="./src/index.js"><script/>
Keys now work but I'm unable to import modules from other javascript files.
The only workaround that I found is importing scripts from html and then using them in the html script section

<script src="myscript.js"></script> <script>// I can use myscript.js here</script>

@manduchi
Copy link

Same problem here. Could you give some more details on your solution? Thanks!

@DinoMah
Copy link
Author

DinoMah commented Jul 29, 2021

Oh, so much time since I did that tutorial, but what simply means is that in the script tag you have to delete the type='module' option but you can't use other scripts, I recommend using a framework because they use webpack and you don't have problems with importing modules, other option is copy-pasting all the code on index.js but I don't recommend it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants