Skip to content

ngx_http_js_module not loading in 1.21.5 #615

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

Closed
SamDuvall opened this issue Dec 30, 2021 · 2 comments
Closed

ngx_http_js_module not loading in 1.21.5 #615

SamDuvall opened this issue Dec 30, 2021 · 2 comments

Comments

@SamDuvall
Copy link

I'm getting a unknown directive "js_include" in /etc/nginx/nginx.conf error when I upgrade from 1.21.4 to 1.21.5.

Do I need to do something differently to load ngx_http_js_module other than load_module /usr/lib/nginx/modules/ngx_http_js_module.so in PCRE2?

@thresheek
Copy link
Member

Hi @SamDuvall ! It's not related to PCRE2.

js_include was deprecated and is now removed in njs 0.7.1 which is a part of nginx:1.21.5 image:, see http://nginx.org/en/docs/njs/changes.html#njs0.7.1 .

Please use http://nginx.org/en/docs/http/ngx_http_js_module.html#js_import instead.

@SamDuvall
Copy link
Author

Ah, okay. Thank you for the (quick) clarification.

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