Closed eat-sleep-code closed 1 year ago
Same here. It looks like this is related to the minification, when I set the "minify.enabled": false
bundle config it works again.
Thanks! Probably is okay for a temporary solution, but hopefully gets fixed because defeating the purpose of half the addon if it can't minify the bundle.
:-)
But based on the last Nuget package update date, curious if this project is even supported anymore.
Still an issue in Bootstrap 5.0.1.
@madskristensen Any idea when next release will be pushed to Nuget?
Same here. Getting Bundler & Minifier error 0: Object reference not set to an instance of an object.
sometimes #558
The workaround I use to get it fixed when happens:
minify.enabled : false
in bundle config.json for failed bundle dotnet build
for the project from CLI (should be OK with the disabled minification)minify.enabled : true
in bundle config.json dotnet build
for the project from CLI again (should be OK now with the restored minification too)P.S. @madskristensen this is a weird thing happening. Maybe you could consider automating this. Would save time for the folks who keep wasting time on figuring out why this happens and how to fit it.
Same here. Getting
Bundler & Minifier error 0: Object reference not set to an instance of an object.
sometimes #558The workaround I use to get it fixed when happens:
- set
minify.enabled : false
in bundle config.json for failed bundle- run
dotnet build
for the project from CLI (should be OK with the disabled minification)- restore
minify.enabled : true
in bundle config.json- run
dotnet build
for the project from CLI again (should be OK now with the restored minification too)- build the project / solution as you usually do (I mean if you e.g. use Visual Studio IDE) - should work OK after the magic applied above Hope that helps!
P.S. @madskristensen this is a weird thing happening. Maybe you could consider automating this. Would save time for the folks who keep wasting time on figuring out why this happens and how to fit it.
This doesn´t work for me.
Everytime I add bootstrap.js it will crash, no matter what. I´ve checked the file for "??" nullish coalescing operators but there is none in the file.
@mkalinski93
This package appears to no longer be maintained as it hasn't had a commit in over 9 or 10 months and hasn't had a NuGet release since 2020. I made repeated attempts to reach Mads -- the original creator -- but I got no response.
I would suggest moving to Webpack 5 which has very broad support and is actively maintained (often multiple release updates per month).
Closing issue due to no response from repository maintainer in well over a year and a half. This project should be archived as it is no longer maintained. Consider using Webpack 5 or other maintained project.
Installed product versions
Description
The following error occurs during build:
Steps to recreate
"node_modules/bootstrap/dist/js/bootstrap.bundle.js",
from bundleconfig.json.Current behavior
Bundler & Minifier error 0: Object reference not set to an instance of an object.
Expected behavior
This should be pretty obvious -- build projects containing Bootstrap 5 without error.