Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example下的sale运行 npm run dev 报错 #19

Open
ChrisGou opened this issue Jul 18, 2018 · 7 comments
Open

example下的sale运行 npm run dev 报错 #19

ChrisGou opened this issue Jul 18, 2018 · 7 comments

Comments

@ChrisGou
Copy link

example下的sale运行 npm run dev 报错 😭 -> "[PSG] Cannot read property 'newPage' of null"
我什么也没改
image

@Jocs
Copy link
Contributor

Jocs commented Jul 18, 2018

终端报什么错

@ChrisGou
Copy link
Author

image

@Lizzy07
Copy link

Lizzy07 commented Dec 28, 2018

example下的sale运行 npm run dev 报错 😭 -> "[PSG] Cannot read property 'newPage' of null"
我什么也没改
image

这个错误是你的Puppeteer没有安装好,你把page-skeleton-webpack-plugin卸载掉,再重新安装

@Hideer
Copy link

Hideer commented Jan 7, 2019

@Jocs 你好,今天发现了您这个骨架屏的解决方案本想着先跑跑看看,但是干一上手就出现了问题,example跑不了,报错如下
` throw new OptionsValidationError(validationErrors)
^

PageSkeletonOptionsValidationError: Invalid configuration object. page-skeleton-webpack-plugin has been initialised using a configuration object that does not match the API schema.

  • configuration has an unknown property 'storagies'. These properties are valid:
    object { pathname?, staticDir?, routes?, port?, loading?, text?, image?, button?, svg?, pseudo?, device?, debug?, minify?, defer?, excludes?, remove?, hide?, grayBlock?, cookies?, headless?, cssUnit?, decimal?, logLevel?, logTime?, noInfo?, quiet? }`
    经过一顿google发现应该是webpack更新的问题,但是通过更新webpack版本并没有好转,你有什么好的解决方案么

@sailei1
Copy link

sailei1 commented Jan 14, 2019

一样的错误, 刚开始找不到webpack-log 安装完以后 就报这个错
PageSkeletonOptionsValidationError: Invalid configuration object. page-skeleton-webpack-plugin has been initialised using a configuration object that does not match the API schema.

  • configuration has an unknown property 'storagies'. These properties are valid:
    object { pathname?, staticDir?, routes?, port?, loading?, text?, image?, button?, svg?, pseudo?, device?, debug?, minify?, defer?, excludes?, remove?, hide?, grayBlock?, cookies?, headless?, cssUnit?, decimal?, logLevel?, logTime?, noInfo?, quiet? }

@sailei1
Copy link

sailei1 commented Jan 14, 2019

storagies 把这个配置属性 删掉就可以运行了

@Mr-wang007s
Copy link

已解决:PageSkeletonOptionsValidationError,
方法:移除webpack.config.js文件 line 119

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants