skovy/typed-scss-modules

nameFormats.map is not a function

herobank110 opened this issue ยท 2 comments

Expected Behavior

calculate types

Current Behavior

error log: nameFormats.map is not a function
type declarations not being output

Possible Solution

https://github.com/skovy/typed-scss-modules/blob/master/lib/sass/file-to-class-names.ts#L53
missing literal array around nameFormat

Steps to Reproduce (for bugs)

in typed-scss-modules.config.js:

export const config = {
  // nameFormat: 'camel',   commentied out seems to work
  exportType: 'named',
  outputFolder: 'build/@types',
};
  • Version used: 7.0.0
  • Operating System and versions: windows 10
skovy commented

Try passing an array: nameFormat: ['camel']

skovy commented

๐ŸŽ‰ This issue has been resolved in version 7.0.1 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€