linkedin / linkedin/css-blocks
CSS Blocks website doesn't build on windows
- Dominant language
- TypeScript
- Stars
- 6.3k
- Forks
- 154
- PR merge metrics
- No merged PRs in 30d
Description
I tried to download the boilerplate of cs-blocks with create-react-app of your github repository in https://github.com/linkedin/css-blocks/tree/master/packages/@css-blocks/website , I did the npm install and npm start, and the code is not running, npm run build is not working as well.
/Users/kuroneko/Desktop/css-blocks/css-blocks/packages/@css-blocks/website/scripts/start.js:11
throw err;
^
Error: [css-blocks] ImportError: Error parsing block import "./Home.block.css". Failed with:
"Object.entries is not a function"
(/Users/kuroneko/Desktop/css-blocks/css-blocks/packages/@css-blocks/website/src/pages/Home/index.tsx:8)
at CssBlockError (/Users/kuroneko/Desktop/css-blocks/css-blocks/packages/@css-blocks/website/node_modules/@css-blocks/jsx/dist/src/utils/Errors.js:9:9)
at TemplateImportError (/Users/kuroneko/Desktop/css-blocks/css-blocks/packages/@css-blocks/website/node_modules/@css-blocks/jsx/dist/src/utils/Errors.js:57:9)
at ImportDeclaration.analyzer.blockFactory.getBlockFromPath.catch (/Users/kuroneko/Desktop/css-blocks/css-blocks/packages/@css-blocks/website/node_modules/@css-blocks/jsx/dist/src/Analyzer/visitors/importer.js:96:27)
Contributor guide
Research direction
Start by reproducing npm install, npm start, and npm run build for packages/@css-blocks/website on Windows, then inspect scripts/start.js and src/pages/Home/index.tsx around the reported block import. Done means the website starts and builds successfully without the Object.entries error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- build-system, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100