Closed pachuka closed 8 months ago
The bug (regression) in globby https://github.com/sindresorhus/globby/issues/262, we can't fix it here, currently you can fix it change ignore: '**/index.ejs'
to ignore: ['**/index.ejs']
, i.e. as an array
Ahh, I missed that, much appreciated for the quick response/workaround.
I think we can't fix this because of https://github.com/mrmlnc/fast-glob/releases/tag/3.3.1, it looks like string
is not supported since 2018 and this worked just fine thanks to luck, just change it to an array
Yep, agreed was following that chain. Updating to the array did solve the issue. Given 12.x is a major release this "breaking" is OK and hopefully folks will see this issue if they run into it :). Appreciate the help!
Not sure if you can edit the release notes on the 12.0.0, but if so, maybe worth noting that there.
@pachuka Feel free to send a PR with this updating, I am fine with it
Bug report
Actual Behavior
ERROR in directoryPaths.map is not a function
is thrown with no additional stacktrace or context. This was not happening in latest 11.x versions.Configuration:
Expected Behavior
The webpack build should pass successfully instead of terminate mid-processing and copy in assets from
public
directoryHow Do We Reproduce?
Please paste the results of
npx webpack-cli info
here, and mention other relevant informationnpx webpack-cli info
System: OS: macOS 14.2.1 CPU: (8) arm64 Apple M1 Pro Memory: 92.14 MB / 16.00 GB Binaries: Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node npm: 10.2.4 - ~/.nvm/versions/node/v20.10.0/bin/npm Browsers: Chrome: 120.0.6099.216 Edge: 120.0.2210.133 Firefox: 121.0.1 Safari: 17.2.1 Packages: babel-loader: 9.1.3 => 9.1.3 clean-webpack-plugin: 4.0.0 => 4.0.0 copy-webpack-plugin: 12.0.1 => 12.0.1 css-loader: 6.9.0 => 6.9.0 file-loader: 6.2.0 => 6.2.0 fork-ts-checker-webpack-plugin: 9.0.2 => 9.0.2 html-webpack-plugin: 5.6.0 => 5.6.0 raw-loader: 4.0.2 => 4.0.2 source-map-loader: 4.0.2 => 4.0.2 style-loader: 3.3.4 => 3.3.4 webpack: 5.89.0 => 5.89.0 webpack-bundle-analyzer: 4.10.1 => 4.10.1 webpack-cli: 5.1.4 => 5.1.4 webpack-dev-server: 4.15.1 => 4.15.1