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

Error run node minify.js to generate setup_htm.h #26

Closed
arimukhlas opened this issue Apr 6, 2023 · 3 comments
Closed

Error run node minify.js to generate setup_htm.h #26

arimukhlas opened this issue Apr 6, 2023 · 3 comments

Comments

@arimukhlas
Copy link

Hi @cotestatnt

I have followed the instructions on this link

  • i put all files (app.js, setup.htm, and style.css) in folder build
  • open a terminal in build folder
  • run npm i
  • run node minify.js

but I am getting an error

error

  • i also run npm install zlib

but the error still exist, can you give a hint?

@cotestatnt
Copy link
Owner

Hi @arimukhlas

I've done some edits still to be released. Yoi need to download the latest commits as zip file
image

The instructions needs to be updated. Once you have installed the latest avalaible zip you need to:

  • open a terminal and set build folder as current. For example:
    cd <your_arduino_libraries_folder>esp-fs-webserver-master\setup-ui\data\build
  • run npm i to install script dependencies
  • run node minify.js

The node.js script will generate a file named setup_htm.h inside build folder itself. Copy & paste this file in the <your_arduino_libraries_folder>esp-fs-webserver-master\src folder

@arimukhlas
Copy link
Author

Hi @arimukhlas

I've done some edits still to be released. Yoi need to download the latest commits as zip file image

The instructions needs to be updated. Once you have installed the latest avalaible zip you need to:

  • open a terminal and set build folder as current. For example:
    cd <your_arduino_libraries_folder>esp-fs-webserver-master\setup-ui\data\build
  • run npm i to install script dependencies
  • run node minify.js

The node.js script will generate a file named setup_htm.h inside build folder itself. Copy & paste this file in the <your_arduino_libraries_folder>esp-fs-webserver-master\src folder

I have already download latest zip file, but error still exist, it need zlib module

@arimukhlas arimukhlas reopened this Apr 6, 2023
@arimukhlas
Copy link
Author

@cotestatnt

error

I have follow your instruction, but error still occur and setup_htm.h isnt generated, do you have any suggestion?

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