skip to Main Content

Javascript – Next.JS environment issue

Hello im trying to use environment at my MongoDB connection, but the value comes "undefined" My database connection structure like: src/db/connection.js src/server.js I can use console.log(process.env.MONGODB_URI) at src/pages/index.js but i cant use at backend server it says "undefined". import mongoose…

VIEW QUESTION

Issues selecting HTML element with JavaScript, only returns script nodes

I have this block of HTML: <div data-list="" class=""list list-group" OSFillParent" style="position: relative;"> <script style="display: flex; height: 0px; width: 100%;"></script> <div data-block="Navigation.Submenu" class="OSBlockWidget" id="b3-b2-l2-12_0-AppsMenu"></div> <div data-block="Navigation.Submenu" class="OSBlockWidget" id="b3-b2-l2-12_1-AppsMenu"></div> <div data-block="Navigation.Submenu" class="OSBlockWidget" id="b3-b2-l2-12_2-AppsMenu"></div> <div data-block="Navigation.Submenu" class="OSBlockWidget" id="b3-b2-l2-12_3-AppsMenu"></div> <script style="display: flex; height:…

VIEW QUESTION
Back To Top
Search