I have node application that is using webpack bundler. Everytime I try to budle it, I get this error:
Error: Cannot resolve module 'test/qfla-server/node_modules/style-loader/addStyles.js' in /home/backman/!test/tta/app/renderer
resolve module test/tta/node_modules/style-loader/addStyles.js in /home/backman/!test/tta/app/renderer
looking for modules in /home/backman/!test/tta/node_modules
/home/backman/!test/tta/node_modules/test doesn't exist (module as directory)
looking for modules in /home/backman/node_modules
/home/backman/node_modules/test doesn't exist (module as directory)
[/home/backman/!test/tta/node_modules/test]
[/home/backman/node_modules/test]
There is clearly a problem with wrong path to node_modules, test has '!' before it. This is happening only with style and css loaders. Is there some way where webpack would interpret this way correctly?