-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not create output folder error #251
Comments
I should add, this only occurs when my frontend is built through a maven execution. Edit: Edit 2:
Also, I just noticed that when I run webpack from terminal, it does not wipe the assets folder. After manually deleting it, I get the same error as I do through maven. I think this concludes my quest 😃 |
I would love to create a PR fixing the issue, but first I'd like feedback on whether or not treating the resolved value as an error is intentional. Also, I think there's a weakness to your testing. In |
I haven't been very good about keeping things tested, so that could very well be true 😅 I think the explanation is that when we use the Something like this on line 36 of the if (options.keepInMemory && err) {
handleMkdirpError(err)
} |
Thank you for swift feedback on this issue @ztoben ! |
Release |
Describe the bug
This error appears to me from version 5.0.2 and up. 5.0.1 and down works fine.
ERROR in [AssetsWebpackPlugin] Could not create output folder /home/user/git/myApp/frontend/target/build_assets
The target folder is wiped before install, but the plugin successfully creates the target- and build_assets-folders. Also the webpack-assets.json file is successfully created, with sensible content.
So the plugin seems to do what it's supposed to do, yet it produces an error.
Webpack Config
My AssetsPlugin is set up like this.
What other parts of the config would be useful to know? Given the fact that folders and assets file are created where they are supposed to be, I have a feeling the configuration isn't the problem.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: