Skip to main content

All Questions

2 votes
3 answers
210 views

Cannot run Bootstrap and CSS with Node.js, refused to apply style because its MIME type ('text/html') is not a supported stylesheet MIME type

I was trying to test the Start Bootstrap Bare template using Node.js and Express. (Link to Start Bootstrap Template) I did not modify anything within the HTML, CSS and JavaScript provided with the ...
Fadhil Mulyono's user avatar
0 votes
0 answers
81 views

Express not serving NPM installed Bootstrap JS, but is reachable via direct link

I have installed Bootstrap 5 and Express via NPM. In my Express app, I am statically including the bootstrap files with: app.use('/bootstrap', express.static(path.join(__dirname, 'node_modules/...
SandPiper's user avatar
  • 2,916
0 votes
1 answer
375 views

Not able to POST http://localhost:5000/api/createuser

While pursuing a MERN stack project tutorial on YouTube, I've encountered an obstacle in the midst of my progress. The specific issue revolves around the implementation of user registration, a recent ...
Apurva Muthaye's user avatar
1 vote
0 answers
61 views

How can I render posts on various "Article" sections of the Bootstrap blog template using Ejs templating, Node and Express?

I'm designing a blog and have chosen to use the Bootstrap Blog example here I have Express and Ejs all installed. I used ejs templating to render the header and footer parts and have also created the ...
UltimateKaycee's user avatar
1 vote
1 answer
318 views

Toast appended to DOM not showing on show()

I am trying to use Bootsrap 5's toast component to display response messages after a jquery Ajax call. In the success portion, I end with this snippet: itsToastTime(response.status, response.message) ...
Patch85's user avatar
  • 15
0 votes
1 answer
441 views

How to Open MODAL after its been added to DOM - vue 3 bootstrap 5 nodejs

I dont know much about vue/bootstrap and reading docs does not help me to understand how it all works. How to open a modal that is created after the page was loaded. From user input. User clicks ...
Dumidor Dumbleplex's user avatar
0 votes
2 answers
915 views

Remove bootstrap nav-link hover background color

I've been trying to remove the background color of nav-link hover by setting it to transparent but they still show a background when being hovered. I would like to change the hover color for the text ...
Ben Nguyen's user avatar
1 vote
0 answers
473 views

Bootstrap modal works fine locally, but gives TypeError when deployed live

I am using the Start Bootstrap Freelancer theme and have added the exact same styles and scripts to my project as are included in this repo. When testing locally, the modals work perfectly fine and ...
Kou-kun42's user avatar
1 vote
1 answer
152 views

Bootstrap button toggle not working like docs

I copied below directly from the v5.1 documentation and just updated my href. The link works in a dropdown I have but I want to leverage the below buttons instead. <a href="/events/?future=...
econobro's user avatar
  • 369
0 votes
1 answer
58 views

What changed in bootstrap 5 to make controls assume max size

I recently upgraded NodeJs to 16.13.0 from 14.x. One of the modules updated was bootstrap of course. I also had to get rid of my Jumbotron control because of the upgrade, but I don't think that's part ...
Randy's user avatar
  • 1,287
0 votes
0 answers
42 views

When I use partials the site crashes

I tried adding partials to my program but for some reasons it doesn't work, either I am doing something wrong or idk cause i've looked everywhere and everytime I to use <%- include('////') %> ...
Okta25's user avatar
  • 69
0 votes
0 answers
74 views

Add date & time format to client side form submission

I'm using bootstrap5 and ejs create a form where the second input should be a "start date." I'm new-ish to bootstrap and can't find anything in the docs that lets me place a date-picker in ...
econobro's user avatar
  • 369
1 vote
1 answer
3k views

Use Electron with Bootstrap 5 doesn't work

I am creating my first electron app and wanted some styling with bootstrap 5. So I: (1) installed via npm i --save bootstrap jquery popper.js the necessary modules (2) created a main.scss including @...
Luis's user avatar
  • 19
-1 votes
1 answer
131 views

How to use the carousel in bootstrap with data rendered from node js?

What I want to do is create a carousel that shows my 5 different pieces of information and that information is from a separate app.js. I have tried to use a for each loop but as soon as I tried to ...
ryan's user avatar
  • 69
22 votes
6 answers
27k views

How can I use Bootstrap 5 with Next.js?

After installing bootstrap with npm install bootstrap I added the style to /pages/_app.js like so: import 'bootstrap/dist/css/bootstrap.css'; export default function App({ Component, pageProps }) { ...
DavidPH's user avatar
  • 442

15 30 50 per page