runelaenen / shopware6-two-factor-auth

Two Factor Authentication for Shopware 6 💙
MIT License
35 stars 16 forks source link

Run administration without hot reload mode ends in a JavaScript error #9

Closed mathiassname closed 4 years ago

mathiassname commented 4 years ago

I download the latest tag and install / activate the plugin. After that, I access http://localhost:8000/admin and went in the following error:

Bildschirmfoto 2020-08-24 um 14 06 11

If I run the hot reload mode all is fine. Some idea or do you know the issue?

runelaenen commented 4 years ago

Have you ran the build for the administration javascript? bin/build.sh? The compiled files are not always in the git. If you want a 'upload and run' situation, you should download the zip release.

mathiassname commented 4 years ago

Yes, I tried to rebuild administration. In my case I take the files from GitHub, unzip them, copy them to the plugin folder. Add the required Composer packages and install the plugin on command line. After that I executed the build script of the administration assets.

Now I tried to figure out the bug. After I commented out the line:

// import './override/sw-settings-user/page/sw-settings-user-detail';

the login works.

scottie-33 commented 4 years ago

I had the same error. After commented out the line there is no error at the login page, but also no settting-fields in the backend to enable 2FA. Shopware Version: 6.3.0.2

runelaenen commented 4 years ago

I've been looking into this tonight, but I can't seem to reproduce this. I'm getting the same (good) result for the latest tagged version, as well as for the master, both in HRM as with a normal build.

scottie-33 commented 4 years ago

I get this error with the download the zip release.