Skip to content

ERROR in main Module not found: Error: Can't resolve './src' in #16028

Answered by Wuyue0
Yokubjon-J asked this question in Q&A
Discussion options

You must be logged in to vote

经过我运行你的项目 我发现在经过compile函数的时候 获取的webpackconfig 配置是空的 进而报错。 当我修改完毕后 你的webpack.config.client文件的配置 传递给webpack函数 配置会报错 现在没有具体发现是哪一行。 但是你上边贴图的错算是解决了 。 因此对于你上边的图报错 原因就是 传递给webpack参数为{} 。

After I run your project, I find that the ‘webpackConfig’ parameter obtained when I pass the compile function is empty, and then an error is reported. When I finish modifying your webpack config. When the configuration of the client file is passed to the webpack function, an error will be reported. At present, no specific line of configuration has been found. But the mistake of your upper mapping is solved. Therefore, the reason for the error in the above figure is that the parameter passed to webpack is {}.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Yokubjon-J
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Yokubjon-J
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants