serverless-components / website

:zap: Instantly deploy static website on serverless infrastructure with zero configuration using Serverless Components.
https://serverless.com
Apache License 2.0
155 stars 49 forks source link

Duplicate plugin/preset detected. #49

Closed davegariepy closed 4 years ago

davegariepy commented 4 years ago

After installing and trying to run npm run build I got the error: Duplicate plugin/preset detected.

I was able to resolve this by removing the plugins section from package.json

since the preset nano-react-app already includes those plugins, they don't need to be declared again in package.json heres a related stackoverflow explaining

fuschini commented 4 years ago

@davegariepy just had the same problem and your fix made it work!

eahefnawy commented 4 years ago

Thanks all. We just fixed this issue in the template.