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
When rendering a simple page, I was getting 'script' is not defined (Referring to <%- script %> in the layout file)
I found that the issue was that I set 'extractScript', and not 'extractScripts', but the error message is very cryptic for newcomers. Shouldn't it be something like:
"you need to set 'layout extractScripts' to true before using <%- script %>"
Not critical by any means, but it took me a while to find the typo. It would be nice to get that half an hour of my life back.
The text was updated successfully, but these errors were encountered:
Setting up a simple example project:
When rendering a simple page, I was getting 'script' is not defined (Referring to
<%- script %>
in the layout file)I found that the issue was that I set
'extractScript'
, and not'extractScripts
', but the error message is very cryptic for newcomers. Shouldn't it be something like:"you need to set 'layout extractScripts' to true before using <%- script %>"
Not critical by any means, but it took me a while to find the typo. It would be nice to get that half an hour of my life back.
The text was updated successfully, but these errors were encountered: