406c996189
Get rid of the unmet peer dependency warning when installing a next.js project wtih node-sass 5. node-sass 5 is the currently maintained version and removes support one deprecated API and Node.js versions that Next.js does not support either. Next.js uses node-sass 5 in devDependencies. node-sass changelog: https://github.com/sass/node-sass/releases On the other hand, as the docs encourage the sass package instead of node-sass, (see errors/duplicate-sass.md) I have updated examples which used node-sass 4 to the latest sass instead.
22 lines
546 B
JSON
22 lines
546 B
JSON
{
|
|
"name": "with-carbon-components",
|
|
"version": "0.0.1",
|
|
"description": "An example of Nextjs setup with carbon-components-react from IBM",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"dev": "next",
|
|
"build": "next build",
|
|
"start": "next start"
|
|
},
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@carbon/icons-react": "^10.3.0",
|
|
"carbon-components": "^10.3.0",
|
|
"carbon-components-react": "^7.3.0",
|
|
"carbon-icons": "^7.0.7",
|
|
"next": "latest",
|
|
"sass": "^1.32.4",
|
|
"react": "^16.7.0",
|
|
"react-dom": "^16.7.0"
|
|
}
|
|
}
|