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

Building custom web page (/setup) breaks the library #50

Open
IAmOrion opened this issue Oct 26, 2024 · 0 comments
Open

Building custom web page (/setup) breaks the library #50

IAmOrion opened this issue Oct 26, 2024 · 0 comments

Comments

@IAmOrion
Copy link

I made my own page for setup, but when I tried to compile the library it failed. After some testing, I discovered that even with the original files from the library, with NO changes at all, if I build the setup file and copy it to the src folder, the library has an error and will no longer build.

Error:

/Users/iamorion/Documents/Arduino/libraries/AsyncEspFsWebserver/src/AsyncFsWebServer.cpp: In member function 'void AsyncFsWebServer::handleSetup(AsyncWebServerRequest*)': /Users/iamorion/Documents/Arduino/libraries/AsyncEspFsWebserver/src/AsyncFsWebServer.cpp:219:93: error: '_acsetup_min_htm' was not declared in this scope; did you mean '_acedit_min_htm'? 219 | AsyncWebServerResponse *response = request->beginResponse_P(200, "text/html", (uint8_t*)_acsetup_min_htm, sizeof(_acsetup_min_htm)); | ^~~~~~~~~~~~~~~~ | _acedit_min_htm exit status 1 Error compiling for board ESP32C3 Dev Module.

If I restore the setup_htm.h that exists in src from the download, it will compile file. If I compile the file following the instructions and using node minify.js - then move the generated setup_htm.h file into the src folder, it then has the error as above so something is breaking and it's not possible to create custom pages currently (Using version 1.0.7)

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

1 participant