![]() ![]() I only found another two people with similar problems, and theirs were fixed by just adding inject: false to the configuration object of HtmlWebpackPlugin. ![]() ![]() So right now, my theory is that for some reason webpack-dev-server is running twice, in parallel, and that creates a race condition or error that triggers this unknown property 'error' problem. Then after some googling I found out about someone else that also had this unknown property 'error' problem, and the reason it happened to him was that he had http-server running in the background. Project is running at webpack output is served from /Īnd after that it logs several warnings about there being multiple modules with names that only differ in casing The output looks like if the web server was started twice: Project is running at webpack output is served from / New HtmlWebpackPlugin(Īs you can see, this error is very confusing, because there isn’t any error property on the config fileĪfter trying different ways to fix this, I tried to just remove the devServer property and start the dev server with the default settings.īut now is when it gets weird. I have a config file named, pictured here: const path = require("path") Ĭonst HtmlWebpackPlugin = require("html-webpack-plugin") Ĭonst ExtractTextPlugin = require("extract-text-webpack-plugin") Ĭonst CopyWebpackPlugin = require("copy-webpack-plugin") ĬontentBase: path.join(_dirname, "dist") I have tried to fix this problem in several different ways, so I must start from the beginning. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |