linkedin / linkedin/css-blocks
Webpack Plugin for CSS Blocks Error: Cannot find module '@css-blocks/jsx'
- Dominant language
- TypeScript
- Stars
- 6.3k
- Forks
- 154
- PR merge metrics
- No merged PRs in 30d
Description
I’m trying to use the most basic setup of CSS Blocks, and so I’m following the directions at https://github.com/linkedin/css-blocks/tree/master/packages/@css-blocks/webpack
However, when I get to the [Rewriter Integration](https://github.com/linkedin/css-blocks/tree/master/packages/@css-blocks/webpack#rewriter-integration) section, the first import provided in the example code won’t resolve:
```
Error: Cannot find module '@css-blocks/jsx'
```
An `ls` of `node_modules/@css-blocks` reveals there is no `jsx` subfolder.
Contributor guide
Research direction
Start with the Webpack package's Rewriter Integration section linked in the issue and compare its first import with the packages present under node_modules/@css-blocks. Verify which package or import the example should reference. Done means the documented basic setup resolves the import without the reported module-not-found error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, webpack
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100