biotope / biotope-generator

A file generator for the biotope project written with plop
7 stars 2 forks source link

import styles from './index.scss' does not work. #29

Closed dweiger closed 5 years ago

dweiger commented 5 years ago

import styles from './index.scss' does not work. It leads to an error on the console:

To Reproduce

  1. yarn start
  2. error: ERROR in [at-loader] ./src/components/XTemplateFilter/template.ts:2:20 TS2307: Cannot find module './index.scss'.

Expected behavior

Desktop (please complete the following information):

Additional context Until now I used require. that needs to declared first : declare function require(name: string); In the style tag it is:

That works for me.

SheepFromHeaven commented 5 years ago

This is a typescript error which should be solved in the newest boilerplate here: https://github.com/biotope/biotope-boilerplate/tree/feature/biotope-element