Closed kumakichi closed 3 years ago
lib | old | new |
pdfjs-dist | 2.0.489 | 2.8.335 |
babel-eslint | 7.1.1 | 10.1.0 |
copy-webpack-plugin | 4.0.1 | 9.0.1 |
eslint | 4.18.2 | 7.30.0 |
file-loader | 0.10.0 | 6.2.0 |
html-webpack-plugin | 2.22.0 | 5.3.2 |
webpack | 3.11.0 | 5.42.0 |
webpack-cli | 2.0.15 | 4.7.2 |
webpack-dev-server | 2.11.1 | 3.11.2 |
Hey @kumakichi , checked this out and when I'm running npm run watch
I get
npm run watch
> pdf-to-markdown@0.1.2 watch
> webpack -d --watch
[webpack-cli] Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
- configuration.devtool should match pattern "^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-map$".
BREAKING CHANGE since webpack 5: The devtool option is more strict.
Please strictly follow the order of the keywords in the pattern.
Any idea ?
It's wierd, I just made a clean clone of my repo and tested, it works
But I found someone has the same problem, he just removed -d
But both webpack -d --watch
and webpack --watch
work for me
Ok, --mode development
seems to do the trick!
Thanks for your work!