Skip to content

WebC fails with 11ty running on Deno #104

@tryoxiss

Description

@tryoxiss

(I'm not sure if Deno is officially supported, but I assume it is here as this is an official plugin for 11ty, where deno is officially supported)

When trying to build webc files on deno, dynamic attributes raise errors.

Error logs:

website → deno task dev
Task dev eleventy --serve --incremental
[11ty] Problem writing Eleventy templates:
[11ty] 1. Having trouble rendering webc template ./_source/da/posts/index.webc (via TemplateContentRenderError)
[11ty] 2. Check the dynamic attribute: `webc:for="pagination.items"`.
[11ty] Original error message: Not implemented: createContext
[11ty] 
[11ty] Original error stack trace: Error: Check the dynamic attribute: `webc:for="pagination.items"`.
[11ty] Original error message: Not implemented: createContext
[11ty]     at Function.evaluateScript (file:///home/madeline/projects/website/node_modules/.deno/@11ty+webc@0.11.4/node_modules/@11ty/webc/src/moduleScript.cjs:71:10)
[11ty]     at Function.evaluateScriptInline (file:///home/madeline/projects/website/node_modules/.deno/@11ty+webc@0.11.4/node_modules/@11ty/webc/src/moduleScript.cjs:44:23)
[11ty]     at AstSerializer.evaluateAttribute (file:///home/madeline/projects/website/node_modules/.deno/@11ty+eleventy-plugin-webc@0.11.2/node_modules/@11ty/webc/src/ast.js:787:40)
[11ty]     at AstSerializer.getLoopContent (file:///home/madeline/projects/website/node_modules/.deno/@11ty+eleventy-plugin-webc@0.11.2/node_modules/@11ty/webc/src/ast.js:963:32)
[11ty]     at AstSerializer.compileNode (file:///home/madeline/projects/website/node_modules/.deno/@11ty+eleventy-plugin-webc@0.11.2/node_modules/@11ty/webc/src/ast.js:1006:26)
[11ty]     at AstSerializer.getChildContent (file:///home/madeline/projects/website/node_modules/.deno/@11ty+eleventy-plugin-webc@0.11.2/node_modules/@11ty/webc/src/ast.js:349:67)
[11ty]     at async AstSerializer.compileNode (file:///home/madeline/projects/website/node_modules/.deno/@11ty+eleventy-plugin-webc@0.11.2/node_modules/@11ty/webc/src/ast.js:1226:36)
[11ty]     at async AstSerializer.getChildContent (file:///home/madeline/projects/website/node_modules/.deno/@11ty+eleventy-plugin-webc@0.11.2/node_modules/@11ty/webc/src/ast.js:349:56)
[11ty]     at async AstSerializer.compileNode (file:///home/madeline/projects/website/node_modules/.deno/@11ty+eleventy-plugin-webc@0.11.2/node_modules/@11ty/webc/src/ast.js:1226:36)
[11ty]     at async AstSerializer.getChildContent (file:///home/madeline/projects/website/node_modules/.deno/@11ty+eleventy-plugin-webc@0.11.2/node_modules/@11ty/webc/src/ast.js:349:56)
[11ty] Wrote 0 files in 0.55 seconds (v3.0.0)
 website → 

Details:

  • Deno 1.40.3
  • eleventy 3.0.0
  • eleventy-plugin-webc ^0.11.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions