Module not found: Error: Can‘t resolve ‘main.bundle.js‘ in ‘E:\VUE\webpack的使用‘

During the initial learning of webpack, enter the following code in the command line tool according to the video

webpack ./src/main.js ./dist/bundle.js

The following error is displayed

Insert picture description here
Reason: the version of webpack is higher and the statement version used is lower

Solution: Change to the following code

webpack ./src/main.js -o ./dist/bundle.js

Guess you like

Origin blog.csdn.net/d1063270962/article/details/109292828