Failed to create community template #1414
-
$ git clone https://github.com/lowlighter/metrics.git
$ cd metrics/
$ npm install
$ npm run quickstart template test
> [email protected] quickstart
> node .github/scripts/quickstart/index.mjs template test
quickstart for template
copying /home/n0099/metrics/.github/scripts/quickstart/template/README.md to /home/n0099/metrics/source/templates/test/README.md
copying /home/n0099/metrics/.github/scripts/quickstart/template/image.svg to /home/n0099/metrics/source/templates/test/image.svg
"/home/n0099/metrics/.github/scripts/quickstart/template/image.svg":26
; __append(escapeFn( extras.css ))
^
ReferenceError: /home/n0099/metrics/.github/scripts/quickstart/template/image.svg:5
3| <defs><style><%%= fonts %></style></defs>
4| <style data-optimizable="true"><%%= style %></style>
>> 5| <style><%= extras.css %></style>
6|
7| <foreignObject x="0" y="0" width="100%" height="100%">
8| <div xmlns="http://www.w3.org/1999/xhtml" xmlns:xlink="http://www.w3.org/1999/xlink">
extras is not defined
at eval ("/home/n0099/metrics/.github/scripts/quickstart/template/image.svg":26:26)
at image (/home/n0099/metrics/node_modules/ejs/lib/ejs.js:703:17)
at /home/n0099/metrics/node_modules/ejs/lib/ejs.js:260:40
at new Promise (<anonymous>)
at tryHandleCache (/home/n0099/metrics/node_modules/ejs/lib/ejs.js:258:14)
at exports.renderFile (/home/n0099/metrics/node_modules/ejs/lib/ejs.js:491:10)
at rcopy (file:///home/n0099/metrics/.github/scripts/quickstart/index.mjs:40:67)
at async file:///home/n0099/metrics/.github/scripts/quickstart/index.mjs:28:1 {
path: '/home/n0099/metrics/.github/scripts/quickstart/template/image.svg'
}
Node.js v19.8.1 |
Beta Was this translation helpful? Give feedback.
Answered by
lowlighter
Mar 30, 2023
Replies: 1 comment
-
Hi 👋 ! Thanks for reporting, this has been fixed upstream with dfa586b. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
n0099
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi 👋 !
Thanks for reporting, this has been fixed upstream with dfa586b.
It should works after you pull (you may have to remove the template folder it created previously first)