-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
JavaScript Globals unavailable in webc:type="js" #100
Labels
bug
Something isn't working
Milestone
Comments
darthmall
pushed a commit
to darthmall/11ty.webc.fun
that referenced
this issue
Jan 15, 2023
I've updated most of the render functions to use webc:type=js instead of render. The one exception is the link-canonical component because there seems to be a problem with JavaScript globals in the new render functions. I've opened an issue: 11ty/webc#100
darthmall
pushed a commit
to darthmall/11ty.webc.fun
that referenced
this issue
Jan 15, 2023
The footer was missing because I forgot to remove the @html="content" from the old root.webc template, which is now base.webc. I also had to revert the copyright component to the old render type because it uses `new Date()`. See 11ty/webc#100.
I also see this for |
This fix will ship with WebC v0.9.0! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With the old render functions I could do something like this:
But with the new
webc:type="js"
I get aTypeError
stating thatDate
is not a constructor. (Same is true forURL
.)The text was updated successfully, but these errors were encountered: