DEV Community

Discussion on: 2020 Complete Setup for Storybook, Nextjs, Typescript, SCSS and Jest

Collapse
 
sietsetrommelen profile image
Sietse Trommelen

Great tutorial! I've used it to setup my project with SCSS. However, I'm running into an issue.

I've added a Button component in Storybook and it's working fine, until I add a component-specific SCSS file. When running Storybook I get the following error:

ModuleParseError: Module parse failed: Unexpected token (7:0)

The error points to the beginning bracket of the SCSS rule. Any ideas how to setup component specific SCSS files?