Hi, after upgrading to mkdocs-material==5.5.14 my project doesn't build anymore. Reverting to 5.2.2 makes it work again, which is sufficient for me, but I thought it may be worth reporting. I don't have any custom templates. Maybe it is related to some version mismatch. I attach below the result of pip freeze in my conda environment, in case that's helpful.
I checked that...
[x] ... the documentation does not mention anything about my problem
[x] ... the problem doesn't occur with the default MkDocs template
[x] ... the problem is not in any of my customizations (CSS, JS, template)
[x] ... there are no open or closed issues that are related to my problem
Description
mkdocs build
INFO - Cleaning site directory
INFO - Building documentation to directory: /Users/thomas/code/cocktail/docs/public/site
Traceback (most recent call last):
File "/Users/thomas/anaconda/envs/docs/bin/mkdocs", line 8, in <module>
sys.exit(cli())
File "/Users/thomas/anaconda/envs/docs/lib/python3.8/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/Users/thomas/anaconda/envs/docs/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/Users/thomas/anaconda/envs/docs/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/thomas/anaconda/envs/docs/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/thomas/anaconda/envs/docs/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/Users/thomas/anaconda/envs/docs/lib/python3.8/site-packages/mkdocs/__main__.py", line 159, in build_command
build.build(config.load_config(**kwargs), dirty=not clean)
File "/Users/thomas/anaconda/envs/docs/lib/python3.8/site-packages/mkdocs/commands/build.py", line 288, in build
_build_theme_template(template, env, files, config, nav)
File "/Users/thomas/anaconda/envs/docs/lib/python3.8/site-packages/mkdocs/commands/build.py", line 114, in _build_theme_template
output = _build_template(template_name, template, files, config, nav)
File "/Users/thomas/anaconda/envs/docs/lib/python3.8/site-packages/mkdocs/commands/build.py", line 93, in _build_template
output = template.render(context)
File "/Users/thomas/anaconda/envs/docs/lib/python3.8/site-packages/jinja2/environment.py", line 1090, in render
self.environment.handle_exception()
File "/Users/thomas/anaconda/envs/docs/lib/python3.8/site-packages/jinja2/environment.py", line 832, in handle_exception
reraise(*rewrite_traceback_stack(source=source))
File "/Users/thomas/anaconda/envs/docs/lib/python3.8/site-packages/jinja2/_compat.py", line 28, in reraise
raise value.with_traceback(tb)
File "/Users/thomas/anaconda/envs/docs/lib/python3.8/site-packages/material/404.html", line 4, in top-level template code
{% extends "main.html" %}
File "/Users/thomas/anaconda/envs/docs/lib/python3.8/site-packages/material/main.html", line 4, in top-level template code
{% extends "base.html" %}
File "/Users/thomas/anaconda/envs/docs/lib/python3.8/site-packages/material/base.html", line 7, in top-level template code
{% set palette = palette | first %}
File "/Users/thomas/anaconda/envs/docs/lib/python3.8/site-packages/jinja2/filters.py", line 510, in do_first
return next(iter(seq))
TypeError: 'NoneType' object is not iterable
Hi, after upgrading to mkdocs-material==5.5.14 my project doesn't build anymore. Reverting to 5.2.2 makes it work again, which is sufficient for me, but I thought it may be worth reporting. I don't have any custom templates. Maybe it is related to some version mismatch. I attach below the result of
pip freeze
in my conda environment, in case that's helpful.I checked that...
Description
Expected behavior
Should build.
Actual behavior
Fails building.
Steps to reproduce the bug
mkdocs build
Package versions
Project configuration
Pip versions (pip freeze)
System information