in ./node_modules/screenfull/index.js
Module parse failed: Unexpected token (55:42)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|
| for (const methodList of methodMap) {
> const exitFullscreenMethod = methodList?.[1];
| if (exitFullscreenMethod in document) {
| for (const [index, method] of methodList.entries()) {
在这里找到解决方法
https://github.com/sindresorhus/screenfull/issues/195
module.exports = {
// code
transpileDependencies: ['screenfull']
// code }