web-auth / symfony-webauthn-demo

Demo Application using Symfony 6, Tailwind, FrankenPHP, AssetMapper and Webauthn
MIT License
41 stars 7 forks source link

register not working locally #420

Open alex313962 opened 2 weeks ago

alex313962 commented 2 weeks ago

Version(s) affected

production

Description

I have installed all the package required and launched all makefile but make frontend report a warning: [WARNING] You are compiling assets in development. Symfony will not serve any changed assets until you delete the files in the "public/assets" directory.
and if i go to localhost/register to try the app, the js throws an error: Uncaught (in promise) TypeError: 1 is undefined

How to reproduce

clone the repo install php8.2 with the required package make build stop apache2 server make up composer require symfony/runtime chown $USER:$USER on the folder to avoid errors chmod 775 for the same reason make frontend

Possible Solution

i think the prod could have a different behaviour but if in the env i change to prod the warning stay the same

Additional Context

No response

Spomky commented 2 weeks ago

Hi,

The command make frontend compiles the assets for production. If you want to use this project for development, please use make watch.

alex313962 commented 2 weeks ago

Hi, i tried the make watch just now and the this is the result: WARN[0000] /home/alessandro/Desktop/symfony-webauthn-demo/docker-compose.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion WARN[0000] /home/alessandro/Desktop/symfony-webauthn-demo/docker-compose.override.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion

[OK] Updated all packages in importmap.php.

WARN[0000] /home/alessandro/Desktop/symfony-webauthn-demo/docker-compose.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion WARN[0000] /home/alessandro/Desktop/symfony-webauthn-demo/docker-compose.override.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion

! [NOTE] Executing Tailwind (pass -v to see more details).

Browserslist: caniuse-lite is outdated. Please run: npx update-browserslist-db@latest Why you should do it regularly: https://github.com/browserslist/update-db#readme

Rebuilding...

Done in 380ms.

after this the console doesn't return usable and the error in the register is the same. Could it be useful re-run from zero?