madskristensen / BundlerMinifier

Visual Studio extension
Other
616 stars 173 forks source link

Object reference not set to an instance of an object if folder name have .js #322

Open grifin85 opened 6 years ago

grifin85 commented 6 years ago

Installed product versions

Description

24.12.2017 21:30:08: System.NullReferenceException: Object reference not set to an instance of an object.
   at BundlerMinifier.FileHelpers.NormalizePath(String path) in C:\projects\bundlerminifier\src\BundlerMinifier.Core\Helpers\FileHelpers.cs:line 84
   at BundlerMinifier.Bundle.GetAbsoluteOutputFile() in C:\projects\bundlerminifier\src\BundlerMinifier.Core\Bundle\Bundle.cs:line 62
   at BundlerMinifier.BundleFileProcessor.OnProcessing(Bundle bundle, String baseFolder) in C:\projects\bundlerminifier\src\BundlerMinifier.Core\Bundle\BundleFileProcessor.cs:line 196
   at BundlerMinifier.BundleFileProcessor.ProcessBundle(String baseFolder, Bundle bundle) in C:\projects\bundlerminifier\src\BundlerMinifier.Core\Bundle\BundleFileProcessor.cs:line 101
   at BundlerMinifier.BundleFileProcessor.Process(String fileName, IEnumerable`1 bundles) in C:\projects\bundlerminifier\src\BundlerMinifier.Core\Bundle\BundleFileProcessor.cs:line 40
   at BundlerMinifierVsix.BundleService.<>c__DisplayClass8_0.<Process>b__0(Object o) in C:\projects\bundlerminifier\src\BundlerMinifierVSIX\BundleService.cs:line 112
24.12.2017 21:30:20: System.NullReferenceException: Object reference not set to an instance of an object.
   at BundlerMinifier.FileHelpers.NormalizePath(String path) in C:\projects\bundlerminifier\src\BundlerMinifier.Core\Helpers\FileHelpers.cs:line 84
   at BundlerMinifier.Bundle.GetAbsoluteOutputFile() in C:\projects\bundlerminifier\src\BundlerMinifier.Core\Bundle\Bundle.cs:line 62
   at BundlerMinifier.BundleFileProcessor.OnProcessing(Bundle bundle, String baseFolder) in C:\projects\bundlerminifier\src\BundlerMinifier.Core\Bundle\BundleFileProcessor.cs:line 196
   at BundlerMinifier.BundleFileProcessor.ProcessBundle(String baseFolder, Bundle bundle) in C:\projects\bundlerminifier\src\BundlerMinifier.Core\Bundle\BundleFileProcessor.cs:line 101
   at BundlerMinifier.BundleFileProcessor.Process(String fileName, IEnumerable`1 bundles) in C:\projects\bundlerminifier\src\BundlerMinifier.Core\Bundle\BundleFileProcessor.cs:line 40
   at BundlerMinifierVsix.BundleService.<>c__DisplayClass8_0.<Process>b__0(Object o) in C:\projects\bundlerminifier\src\BundlerMinifierVSIX\BundleService.cs:line 112

Steps to recreate

Try add "node_modules/popper.js/dist/popper.min.js"

coultonluke commented 6 years ago

Also getting this issue when packaging up the following script provided by Microsoft for SignalR:

node_modules/@aspnet/signalr-client/dist/browser/signalr-clientES5-1.0.0-alpha2-final.js

Here's what my package section looks like for it:

image

sonsy-soft commented 4 years ago

I have this error , there is no solution,is there ?

Vasanthvivi commented 1 year ago

i am also getting this kind of error while bundling all of the angular production build files,,

Vasanthvivi commented 1 year ago

i think this is just copying all the contents together in a certain way,, when we use ''this'' keyword context will be differ i think....