You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✖ Failed export to /Users/sakamies/Desktop/pingytest/dist
{ ReferenceError: /Users/sakamies/Desktop/pingytest/a.ejs:1
>> 1| a: <%= a %>
2|
a is not defined
at eval (eval at compile (/Users/sakamies/Desktop/pingytest/node_modules/ejs/lib/ejs.js:524:12), <anonymous>:10:26)
at returnedFn (/Users/sakamies/Desktop/pingytest/node_modules/ejs/lib/ejs.js:555:17)
at Object.exports.render (/Users/sakamies/Desktop/pingytest/node_modules/ejs/lib/ejs.js:364:37)
at /Users/sakamies/Desktop/pingytest/node_modules/accord/lib/adapters/ejs/2.x.js:33:31
at compile (/Users/sakamies/Desktop/pingytest/node_modules/accord/lib/adapters/ejs/2.x.js:64:15)
at EJS._render (/Users/sakamies/Desktop/pingytest/node_modules/accord/lib/adapters/ejs/2.x.js:31:14)
at EJS.Adapter.render (/Users/sakamies/Desktop/pingytest/node_modules/accord/lib/adapter_base.js:124:19)
at continuation.then.source (/Users/sakamies/Desktop/pingytest/node_modules/@pingy/compile/lib/baby-tolk.js:199:17)
at tryCatchReject (/Users/sakamies/Desktop/pingytest/node_modules/when/lib/makePromise.js:845:30)
at runContinuation1 (/Users/sakamies/Desktop/pingytest/node_modules/when/lib/makePromise.js:804:4) path: '/Users/sakamies/Desktop/pingytest/a.ejs' }
Macintosh:pingytest sakamies$
The text was updated successfully, but these errors were encountered:
I'm on holidays at the moment so I can't verify but my guess is that it's trying to compile a.ejs as a standalone file. Pingy has a convention where you use the underscore character to mark a file as a partial. Can you try renaming the file to _a.js and include it as <%- include('_a', {a: 'a'}) %> too. Let me know if that works for you.
Not sure what's going on. With
pingy dev
the page works fine, butpingy export
fails.I narrowed it down so I have only an index.ejs and one included partial.
index.ejs:
a.ejs:
Here's the whole log:
The text was updated successfully, but these errors were encountered: