screenfull加载的时候失败

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 }

posted @ 2022-04-16 16:42  郑州谷多软件  阅读(1210)  评论(1编辑  收藏  举报