CopyWebpackPlugin cannot find files defined in config

When im trying to run my react app on my Windows 10 laptop, i get the following error:

ERROR in unable to locate 'C:\Workspace\projects\weiling-pwa\node_modules\scandit-sdk\build\scandit-engine-sdk.*' glob

The config file:

const CracoLessPlugin = require('craco-less');
const webpack = require('webpack');
const path = require('path');
const StylelintPlugin = require('stylelint-webpack-plugin');
const CopyPlugin = require("copy-webpack-plugin");

const isDev = process.env.NODE_ENV === 'development';

const defaultPlugins = [
  new StylelintPlugin({
    emitError: true,
    emitWarning: true,
    failOnError: !isDev,
    failOnWarning: false,
    quiet: false,
    files: ['**/*.less'],
    fix: isDev
  }),
  new CopyPlugin({
    patterns: [
      {
        from: path.resolve(__dirname, "node_modules/scandit-sdk/build/", "scandit-engine-sdk.*"),
        // copy flattend with [name][ext] pattern
        to: "./static/scandit/[name][ext]",
        // ignore terser with info about minified state
        info: { minimized: true },
      },
    ]
  }),
];

/*
 * plugins only for dev
 */
const devPlugins = [
  new webpack.ProgressPlugin()
];

/*
 * plugins only for prod
 */
const prodPlugins = [];

const plugins = defaultPlugins.concat(isDev ? devPlugins : prodPlugins);

module.exports = {
  plugins: [
    {
      plugin: CracoLessPlugin,
      options: {
        lessLoaderOptions: {
          lessOptions: {
            javascriptEnabled: true,
            modifyVars: { '@primary-color': '#51035a',  '@heading-color': '#51035a' }
          }
        }
      }
    }
  ],
  eslint: {
    enable: true,
    mode: ESLINT_MODES.extends,
    pluginOptions: (eslintOptions) => (
      {
        ...eslintOptions,
        emitWarning: true,
        failOnWarning: false,
        emitError: true,
        failOnError: true,
        fix: isDev,
        quiet: false
      }
    )
  },
  webpack: {
    devServer: (devServerConfig, { env, paths, proxy, allowedHost }) => {
      devServerConfig.writeToDisk = true;
      return devServerConfig;
    },
    plugins
  }
};

I have verified that the files i define in from: in patterns: exist. My work collegues that use macbooks don't encounter this problem. Thanks in advance.

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum