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

fix variable assignment error #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

maxboeck
Copy link

Hi! Thanks for this plugin, looks like a good solution to the ongoing 11ty issue about post folders.
I noticed a small bug though - when running in "directory" mode, I'm seeing this error:

TemplateWriterWriteError was thrown: Assignment to constant variable.

this is caused by the re-assignment of assets on L110.
Declaring it as a mutable variable seems to fix the issue.

when running in "directory" mode, I'm seeing this error:

`TemplateWriterWriteError` was thrown: Assignment to constant variable.

this is caused by the re-assignment of `assets` on L110. Declaring it as a mutable variable seems to fix the issue.
@KevinGimbel
Copy link

I'm running into the same error. Changing from const to let fixes the issue.

Any estimate when this can be merged and released?

@arrowtype
Copy link

Oh, haha, I found and fixed the same thing, and was about to make my own PR. Glad someone beat me to it! See issue #1, which this will close.

@hidegh
Copy link

hidegh commented Feb 13, 2021

@victornpb any chance to get this fixed? getting same error (also added post.zip content to emulate): #3

@walpolea
Copy link

walpolea commented Jun 5, 2021

Any chance this fix could get merged in @victornpb?

@scsskid
Copy link

scsskid commented Sep 9, 2021

please merge

@nachtfunke
Copy link

Is there anything we can do to have this request merged?

@aloxe aloxe mentioned this pull request Jan 21, 2023
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

Successfully merging this pull request may close these issues.

8 participants