@PitaJ said in :
./nodebb build --dev
no error in dev mode, but again the script is undefined. Is there to activate some authorization?
the script is loaded from the network, it is also present in the html tags index. However it is not accessible.
p.s: i running the app in localhost.
if i try this code
$(document.body).append(`
<script defer src="https://www.gstatic.com/firebasejs/7.0.0/firebase-app.js"></script>
`)
i get this errors
nodebb.min.js?v=b09q1lvc4ag:14627 Uncaught TypeError: Cannot read property 'create' of undefined
at nodebb.min.js?v=b09q1lvc4ag:14627
at Object.execCb (nodebb.min.js?v=b09q1lvc4ag:13769)
at da.check (nodebb.min.js?v=b09q1lvc4ag:13758)
at da.<anonymous> (nodebb.min.js?v=b09q1lvc4ag:13762)
at nodebb.min.js?v=b09q1lvc4ag:13747
at nodebb.min.js?v=b09q1lvc4ag:13763
at y (nodebb.min.js?v=b09q1lvc4ag:13746)
at da.emit (nodebb.min.js?v=b09q1lvc4ag:13763)
at da.check (nodebb.min.js?v=b09q1lvc4ag:13759)
at da.enable (nodebb.min.js?v=b09q1lvc4ag:13763)
footer.js?v=b09q1lvc4ag:13 Uncaught TypeError: translator.prepareDOM is not a function
at footer.js?v=b09q1lvc4ag:13
at Object.execCb (nodebb.min.js?v=b09q1lvc4ag:13769)
at da.check (nodebb.min.js?v=b09q1lvc4ag:13758)
at da.<anonymous> (nodebb.min.js?v=b09q1lvc4ag:13762)
at nodebb.min.js?v=b09q1lvc4ag:13747
at nodebb.min.js?v=b09q1lvc4ag:13763
at y (nodebb.min.js?v=b09q1lvc4ag:13746)
at da.emit (nodebb.min.js?v=b09q1lvc4ag:13763)
at da.check (nodebb.min.js?v=b09q1lvc4ag:13759)
at da.<anonymous> (nodebb.min.js?v=b09q1lvc4ag:13762)
seems like the insertion of the script broke something.
If i insert the same script on the head i receive this error
nodebb.min.js?v=mhcbi3377ao:16519 Uncaught TypeError: pagination.init is not a function
at nodebb.min.js?v=mhcbi3377ao:16519
at Object.execCb (nodebb.min.js?v=mhcbi3377ao:13769)
at da.check (nodebb.min.js?v=mhcbi3377ao:13758)
at da.<anonymous> (nodebb.min.js?v=mhcbi3377ao:13762)
at nodebb.min.js?v=mhcbi3377ao:13747
at nodebb.min.js?v=mhcbi3377ao:13763
at y (nodebb.min.js?v=mhcbi3377ao:13746)
at da.emit (nodebb.min.js?v=mhcbi3377ao:13763)
at da.check (nodebb.min.js?v=mhcbi3377ao:13759)
at da.enable (nodebb.min.js?v=mhcbi3377ao:13763)
script loaded but not executed.....
if i try to load a script on a template file, loaded with benchpress, i dont have problems...