Closed mickaelzhang closed 1 year ago
Hey @mickaelzhang,
I was able to reproduce the issue!
Please try the following steps to fix it:
{
"name": "@mrshmllw/smores-react",
"version": "2.12.1",
"main": "./dist/index.js",
"description": "Collection of React components used by Marshmallow Technology",
"keywords": [
"react",
"components",
"design system",
"component library"
],
"files": [
"dist"
],
"scripts": {
"build-storybook": "build-storybook -c .storybook -s public",
"check-types": "tsc --noEmit",
"deploy-storybook": "storybook-to-ghpages",
"prepublishOnly": "tsc",
"publish-npm": "npm publish --access public",
"start": "npm run storybook",
"storybook": "start-storybook -p 6006 ",
"test:coverage": "jest --coverage --silent",
"test:watch": "jest --watch --silent",
"test": "jest --silent",
"snyk-protect": "snyk-protect",
"prepare": "npm run snyk-protect && husky install",
"pre-commit-lint": "npm run check-types && lint-staged",
"fix-package-lock-conflicts": "echo \"Make sure conflicts in package.json are resolved before running this script\" && npm i --package-lock-only"
},
"devDependencies": {
"@babel/core": "^7.20.5",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/preset-env": "^7.20.2",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@snyk/protect": "^1.881.0",
"@storybook/addon-essentials": "^6.5.14",
"@storybook/builder-webpack5": "^6.5.14",
"@storybook/manager-webpack5": "^6.5.14",
"@storybook/react": "^6.5.14",
"@storybook/storybook-deployer": "^2.8.16",
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^13.4.0",
"@types/jest": "^29.0.0",
"@types/node": "^18.0.0",
"@types/react": "^18.0.24",
"@types/react-dom": "^18.0.8",
"@types/styled-components": "^5.1.3",
"@types/testing-library__jest-dom": "^5.14.3",
"@types/testing-library__react": "^10.2.0",
"@typescript-eslint/eslint-plugin": "^5.31.0",
"@typescript-eslint/parser": "^5.31.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^29.0.2",
"babel-loader": "^9.1.0",
"eslint": "^7.9.0",
"eslint-config-prettier": "^8.2.0",
"eslint-plugin-jest": "^27.0.1",
"eslint-plugin-react": "^7.29.2",
"eslint-plugin-react-hooks": "^4.1.2",
"husky": "^8.0.1",
"jest": "^29.0.2",
"jest-environment-jsdom": "^29.0.2",
"jest-styled-components": "^7.0.3",
"lint-staged": "^13.0.0",
"prettier": "^2.1.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"styled-components": "^5.2.1",
"typescript": "^4.4.2"
},
"dependencies": {
"date-fns": "^2.16.1",
"polished": "^4.1.3"
},
"peerDependencies": {
"react": "^16.8.0 || ^17 || ^18",
"react-dom": "^16.8.0 || ^17 || ^18"
},
"repository": {
"type": "git",
"url": "git+https://github.com/marshmallow-insurance/smores-react.git"
},
"author": "Todor Tsankov",
"license": "MIT",
"homepage": "https://github.com/marshmallow-insurance/smores-react#readme",
"snyk": true
}
npm i --legacy-peer-deps
to install your dependencies.Storybook should run again as expected. Could you try that out? :)
Hey @valentinpalkovic ,
This seems to have solved the issue, thanks!
Describe the bug
It seems the last version (
v6.5.14
), I'm getting this error:To Reproduce
System