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

register not working locally #420

Open
alex313962 opened this issue Nov 3, 2024 · 2 comments
Open

register not working locally #420

alex313962 opened this issue Nov 3, 2024 · 2 comments

Comments

@alex313962
Copy link

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
Copy link
Contributor

Spomky commented Nov 4, 2024

Hi,

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

@alex313962
Copy link
Author

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?

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