Skip to content

fix variable assignment error#2

Open
maxboeck wants to merge 1 commit into
victornpb:masterfrom
maxboeck:patch-1
Open

fix variable assignment error#2
maxboeck wants to merge 1 commit into
victornpb:masterfrom
maxboeck:patch-1

Conversation

@maxboeck
Copy link
Copy Markdown

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
Copy Markdown

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
Copy Markdown

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
Copy Markdown

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
Copy Markdown

walpolea commented Jun 5, 2021

Any chance this fix could get merged in @victornpb?

@scsskid
Copy link
Copy Markdown

scsskid commented Sep 9, 2021

please merge

@nachtfunke
Copy link
Copy Markdown

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