Skip to content
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

indexOf undefined #26

Open
jelaev opened this issue Jun 26, 2019 · 0 comments
Open

indexOf undefined #26

jelaev opened this issue Jun 26, 2019 · 0 comments

Comments

@jelaev
Copy link

jelaev commented Jun 26, 2019

https://www.bootply.com/run?ext=1

Express
500 TypeError: /app/views/preview.ejs:42
   40|         <script type='text/javascript' src="<%=jq[(opts.jqueryVersion)||"1.10.1"]%>"></script>
   41| <%if (opts.jqueryui==1){%><script type='text/javascript' src="<%=inc.jqueryui.js%>"></script><%}%>
>> 42| <%if (opts.bootstrapVersion.indexOf("4.")!=-1){%><script type='text/javascript' src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script><%}%>
   43|         <script type='text/javascript' src="<%=bs[(opts.bootstrapVersion)||"4.3.1"].js%>"></script>
   44| <%if (opts.isotope==1){%><script type='text/javascript' src="<%=inc.isotope.js%>"></script><%}%>
   45| <%if (opts.masonry==1){%><script type='text/javascript' src="<%=inc.masonry.js%>"></script><%}%>

Cannot read property 'indexOf' of undefined
   40|         <script type='text/javascript' src="<%=jq[(opts.jqueryVersion)||"1.10.1"]%>"></script>
   41| <%if (opts.jqueryui==1){%><script type='text/javascript' src="<%=inc.jqueryui.js%>"></script><%}%>
>> 42| <%if (opts.bootstrapVersion.indexOf("4.")!=-1){%><script type='text/javascript' src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script><%}%>
   43|         <script type='text/javascript' src="<%=bs[(opts.bootstrapVersion)||"4.3.1"].js%>"></script>
   44| <%if (opts.isotope==1){%><script type='text/javascript' src="<%=inc.isotope.js%>"></script><%}%>
   45| <%if (opts.masonry==1){%><script type='text/javascript' src="<%=inc.masonry.js%>"></script><%}%>
Cannot read property 'indexOf' of undefined
   at eval (eval at exports.compile (/app/node_modules/ejs-locals/node_modules/ejs/lib/ejs.js:237:14), <anonymous>:30:3844)
   at eval (eval at exports.compile (/app/node_modules/ejs-locals/node_modules/ejs/lib/ejs.js:237:14), <anonymous>:30:8719)
   at /app/node_modules/ejs-locals/node_modules/ejs/lib/ejs.js:250:15
   at Object.exports.render (/app/node_modules/ejs-locals/node_modules/ejs/lib/ejs.js:288:13)
   at Object.exports.renderFile (/app/node_modules/ejs-locals/node_modules/ejs/lib/ejs.js:318:20)
   at View.module.exports [as engine] (/app/node_modules/ejs-locals/index.js:85:7)
   at View.render (/app/node_modules/express/lib/view.js:76:8)
   at Function.app.render (/app/node_modules/express/lib/application.js:518:10)
   at ServerResponse.res.render (/app/node_modules/express/lib/response.js:812:7)
   at /app/server.js:3650:9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant